Remove unused code

Change-Id: I73cd4c881bbd7e963a22fe2b9d7ef679f0ce231d
This commit is contained in:
Anna Khmelnitsky 2017-08-17 15:41:54 -07:00
parent 0d5da8224c
commit 1f58daf478
1 changed files with 0 additions and 11 deletions

View File

@ -81,17 +81,6 @@ class NsxLibTrustManagement(utils.NsxLibApiBase):
resource = ID_SECTION + '/' + identity_id
self.client.delete(resource)
# TODO(annak): kept for sake of short-term stability, remove this
def get_identity_details(self, identity):
results = self.client.get(ID_SECTION)['results']
for result in results:
if result['name'] == identity:
return result
raise nsxlib_exc.ResourceNotFound(
manager=self.client.nsx_api_managers,
operation="Principal identity %s not found" % identity)
def find_cert_and_identity(self, name, cert_pem):
nsx_style_pem = self.remove_newlines_from_pem(cert_pem)
certs = self.get_certs()