コード例 #1
0
 def delete_credential(self, tenant_id, credential_id):
     """Delete a credential"""
     LOG.debug("delete_credential() called\n")
     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\n")
     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 deleteCredential(cred_name):
     """Delete a credential"""
     cdb.remove_credential(TENANT, cred_name)
コード例 #4
0
 def deleteCredential(cred_name):
     """Delete a credential"""
     cdb.remove_credential(TENANT, cred_name)