Beispiel #1
0
 def delete_credential(self, tenant_id, credential_id):
     """Delete a credential"""
     LOG.debug(_("delete_credential() called"))
     try:
         credential = cdb.get_credential(tenant_id, credential_id)
     except Exception:
         raise cexc.CredentialNotFound(tenant_id=tenant_id, credential_id=credential_id)
     credential = cdb.remove_credential(tenant_id, credential_id)
     return credential
 def delete_credential(self, tenant_id, credential_id):
     """Delete a credential"""
     LOG.debug(_("delete_credential() called"))
     try:
         credential = cdb.get_credential(tenant_id, credential_id)
     except Exception:
         raise cexc.CredentialNotFound(tenant_id=tenant_id,
                                       credential_id=credential_id)
     credential = cdb.remove_credential(tenant_id, credential_id)
     return credential
Beispiel #3
0
 def delete_credential(cred_name):
     """Delete a credential."""
     cdb.remove_credential(TENANT, cred_name)
Beispiel #4
0
 def delete_credential(cred_name):
     """Delete a credential."""
     cdb.remove_credential(TENANT, cred_name)