diff --git a/vmware_nsxlib/v3/client_cert.py b/vmware_nsxlib/v3/client_cert.py index 20c2b6d4..cb2882e4 100644 --- a/vmware_nsxlib/v3/client_cert.py +++ b/vmware_nsxlib/v3/client_cert.py @@ -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 diff --git a/vmware_nsxlib/v3/trust_management.py b/vmware_nsxlib/v3/trust_management.py index 9699a330..55228106 100644 --- a/vmware_nsxlib/v3/trust_management.py +++ b/vmware_nsxlib/v3/trust_management.py @@ -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)