mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-01 02:57:59 +00:00 
			
		
		
		
	command/audit: improve audit enable type missing error message (#16409)
* command/audit: improve audit enable type missing error message * changelog
This commit is contained in:
		
							
								
								
									
										3
									
								
								changelog/16409.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								changelog/16409.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | ```release-note:improvement | ||||||
|  | command/audit: Improve missing type error message | ||||||
|  | ``` | ||||||
| @@ -110,7 +110,7 @@ func (c *AuditEnableCommand) Run(args []string) int { | |||||||
|  |  | ||||||
| 	args = f.Args() | 	args = f.Args() | ||||||
| 	if len(args) < 1 { | 	if len(args) < 1 { | ||||||
| 		c.UI.Error("Missing TYPE!") | 		c.UI.Error("Error enabling audit device: audit type missing. Valid types include 'file', 'socket' and 'syslog'.") | ||||||
| 		return 1 | 		return 1 | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -32,7 +32,7 @@ func TestAuditEnableCommand_Run(t *testing.T) { | |||||||
| 		{ | 		{ | ||||||
| 			"empty", | 			"empty", | ||||||
| 			nil, | 			nil, | ||||||
| 			"Missing TYPE!", | 			"Error enabling audit device: audit type missing. Valid types include 'file', 'socket' and 'syslog'.", | ||||||
| 			1, | 			1, | ||||||
| 		}, | 		}, | ||||||
| 		{ | 		{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jason O'Donnell
					Jason O'Donnell