Change validators to use the validator_context
Change InstanceKeys to take a namedtuple for context
This commit is contained in:
		
							parent
							
								
									e967fde3ae
								
							
						
					
					
						commit
						554d4f47a8
					
				
					 31 changed files with 172 additions and 69 deletions
				
			
		|  | @ -8,8 +8,10 @@ class SignerValidator(BaseValidator): | |||
|   name = "signer" | ||||
| 
 | ||||
|   @classmethod | ||||
|   def validate(cls, config, user, user_password, app): | ||||
|   def validate(cls, validator_context): | ||||
|     """ Validates the GPG public+private key pair used for signing converted ACIs. """ | ||||
|     config = validator_context.config | ||||
| 
 | ||||
|     if config.get('SIGNING_ENGINE') is None: | ||||
|       return | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue