1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix broken entities reference in Katello module (#3136)

This commit is contained in:
Eric D Helms 2016-10-15 03:07:51 -04:00 committed by Matt Clay
parent 896dec44a6
commit 151c6d2f88

View file

@ -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]