示例#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
示例#2
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
示例#3
0
 def delete_credential(cred_name):
     """Delete a credential."""
     cdb.remove_credential(TENANT, cred_name)
示例#4
0
 def delete_credential(cred_name):
     """Delete a credential."""
     cdb.remove_credential(TENANT, cred_name)