Ejemplo n.º 1
0
 def delete(self, req, id):
     """
     Delete a keypair with a given name
     """
     context = req.environ['engine.context']
     db.key_pair_destroy(context, context.user_id, id)
     return webob.Response(status_int=202)
Ejemplo n.º 2
0
 def delete(self, req, id):
     """
     Delete a keypair with a given name
     """
     context = req.environ["engine.context"]
     db.key_pair_destroy(context, context.user_id, id)
     return webob.Response(status_int=202)
Ejemplo n.º 3
0
 def delete(self, req, id):
     context = req.environ["engine.context"]
     key_name = id
     LOG.audit(_("Delete key pair %s"), key_name, context=context)
     try:
         db.key_pair_destroy(context, context.user_id, key_name)
     except exception.NotFound:
         # aws returns true even if the key doesn't exist
         pass
     return exc.HTTPAccepted()
Ejemplo n.º 4
0
 def delete(self, req, id):
     context = req.environ['engine.context']
     key_name = id
     LOG.audit(_("Delete key pair %s"), key_name, context=context)
     try:
         db.key_pair_destroy(context, context.user_id, key_name)
     except exception.NotFound:
         # aws returns true even if the key doesn't exist
         pass
     return exc.HTTPAccepted()