From 151c6d2f88e4ba4a31b25a309d4248054d648865 Mon Sep 17 00:00:00 2001 From: Eric D Helms Date: Sat, 15 Oct 2016 03:07:51 -0400 Subject: [PATCH] Fix broken entities reference in Katello module (#3136) --- .../modules/extras/infrastructure/foreman/katello.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/extras/infrastructure/foreman/katello.py b/lib/ansible/modules/extras/infrastructure/foreman/katello.py index 3f7f42942da..3d5219240b9 100644 --- a/lib/ansible/modules/extras/infrastructure/foreman/katello.py +++ b/lib/ansible/modules/extras/infrastructure/foreman/katello.py @@ -327,7 +327,7 @@ class NailGun(object): products = params['products'] del params['products'] - sync_plan = SyncPlan( + sync_plan = self._entities.SyncPlan( self._server, name=params['name'], organization=org @@ -392,8 +392,8 @@ class NailGun(object): env = self.find_lifecycle_environment(environment, organization) content_view = self.find_content_view(name, organization) - content_view_version = ContentViewVersion(self._server, content_view=content_view) - response = content_view_version.search(set('content_view'), {'environment_id': env.id}) + content_view_version = self._entities.ContentViewVersion(self._server, content_view=content_view) + response = content_view_version.search(['content_view'], {'environment_id': env.id}) if len(response) == 1: return response[0]