Remove redundant find_content_view method (#24851)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-05-27 00:36:02 +05:30 committed by John R Barker
parent 723c8f06ab
commit 757758cd1a

View file

@ -385,17 +385,6 @@ class NailGun(object):
content_view.repository = repos
content_view.update(['repository'])
def find_content_view(self, name, organization):
org = self.find_organization(organization)
content_view = self._entities.ContentView(self._server, name=name, organization=org)
response = content_view.search()
if len(response) == 1:
return response[0]
else:
self._module.fail_json(msg="No Content View found for %s" % name)
def find_content_view_version(self, name, organization, environment):
env = self.find_lifecycle_environment(environment, organization)
content_view = self.find_content_view(name, organization)