Exemplo n.º 1
0
 def put(self, session=None):
     """ Store secrets data to DB """
     data = request.json
     secrets_to_db(data)
     # This will trigger reloading the secrets file
     self.manager.validate_config()
     rsp = jsonify(secrets_from_db())
     rsp.status_code = 201
     return rsp
Exemplo n.º 2
0
 def put(self, session=None):
     """ Store secrets data to DB """
     data = request.json
     secrets_to_db(data)
     # This will trigger reloading the secrets file
     self.manager.validate_config()
     rsp = jsonify(secrets_from_db())
     rsp.status_code = 201
     return rsp
Exemplo n.º 3
0
 def put(self, session=None):
     data = request.json
     secrets_to_db(data)
     # This will trigger reloading the secrets file
     self.manager.validate_config()
     return secrets_from_db(), 201
Exemplo n.º 4
0
 def put(self, session=None):
     data = request.json
     secrets_to_db(data)
     # This will trigger reloading the secrets file
     self.manager.validate_config()
     return secrets_from_db(), 201