mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-01 11:08:10 +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() | ||||
| 	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 | ||||
| 	} | ||||
|  | ||||
|   | ||||
| @@ -32,7 +32,7 @@ func TestAuditEnableCommand_Run(t *testing.T) { | ||||
| 		{ | ||||
| 			"empty", | ||||
| 			nil, | ||||
| 			"Missing TYPE!", | ||||
| 			"Error enabling audit device: audit type missing. Valid types include 'file', 'socket' and 'syslog'.", | ||||
| 			1, | ||||
| 		}, | ||||
| 		{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jason O'Donnell
					Jason O'Donnell