From 2220362a5ffbef113fe1d33ecb46331a06d1d875 Mon Sep 17 00:00:00 2001 From: Eric D Helms Date: Thu, 8 Jun 2017 07:49:40 -0400 Subject: [PATCH] fixes(#25299) Don't fail when creating a Foreman organization (#25396) --- lib/ansible/modules/remote_management/foreman/foreman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/remote_management/foreman/foreman.py b/lib/ansible/modules/remote_management/foreman/foreman.py index 67fe77fc7f6..4a6105406de 100644 --- a/lib/ansible/modules/remote_management/foreman/foreman.py +++ b/lib/ansible/modules/remote_management/foreman/foreman.py @@ -93,7 +93,7 @@ class NailGun(object): if len(response) == 1: return response[0] else: - self._module.fail_json(msg="No Content View found for %s" % name) + return None def organization(self, params): name = params['name']