Exemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     super(Secrets, self).__init__(*args, **kwargs)
     self.allowed_keytypes = ['simple']
     if self.config and 'allowed_keytypes' in self.config:
         kt = self.config['allowed_keytypes'].split()
         self.allowed_keytypes = kt
     self._validator = Validator(self.allowed_keytypes)
Exemplo n.º 2
0
 def __init__(self, config, section):
     super(Secrets, self).__init__(config, section)
     self._validator = Validator(self.allowed_keytypes)