mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +00:00 
			
		
		
		
	Validate operator init args (#4838)
This commit is contained in:
		 Seth Vargo
					Seth Vargo
				
			
				
					committed by
					
						 Chris Hoffman
						Chris Hoffman
					
				
			
			
				
	
			
			
			 Chris Hoffman
						Chris Hoffman
					
				
			
						parent
						
							2a3ee08dfa
						
					
				
				
					commit
					1d688e2bc6
				
			| @@ -259,6 +259,12 @@ func (c *OperatorInitCommand) Run(args []string) int { | ||||
| 		c.flagStatus = true | ||||
| 	} | ||||
|  | ||||
| 	args = f.Args() | ||||
| 	if len(args) > 0 { | ||||
| 		c.UI.Error(fmt.Sprintf("Too many arguments (expected 0, got %d)", len(args))) | ||||
| 		return 1 | ||||
| 	} | ||||
|  | ||||
| 	// Build the initial init request | ||||
| 	initReq := &api.InitRequest{ | ||||
| 		SecretShares:    c.flagKeyShares, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user