Skip to content

Commit

Permalink
Remove redundant find_content_view method (#24851)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
  • Loading branch information
Akasurde authored and gundalow committed May 26, 2017
1 parent 723c8f0 commit 757758c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/ansible/modules/remote_management/foreman/katello.py
Expand Up @@ -385,17 +385,6 @@ def content_view(self, params):
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)
Expand Down

0 comments on commit 757758c

Please sign in to comment.