Fix bugs in certificate management exceptions

Change-Id: I3e8f9e35cd574257e923adddec9d1103da3a228a
This commit is contained in:
Anna Khmelnitsky 2017-01-10 15:25:45 -08:00
parent fc6dcf073c
commit 1c0438764a
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ class ClientCertificateManager(object):
self._nsx_trust_management.delete_cert(
details['certificate_id'])
except exceptions.ManagerError as e:
except nsxlib_exceptions.ManagerError as e:
LOG.error(_LE("Failed to clear certificate on backend: %s"), e)
ok = False

View File

@ -62,5 +62,5 @@ class NsxLibTrustManagement(utils.NsxLibApiBase):
return result
raise nsxlib_exc.ResourceNotFound(
manager=self._client.nsx_api_managers,
manager=self.client.nsx_api_managers,
operation="Principal identity %s not found" % identity)