summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2017-06-08 12:55:25 +0100
committerGitHub <noreply@github.com>2017-06-08 12:55:25 +0100
commitb6e4266aa56dae4c5762ff74860aa402b44c803c (patch)
tree8d52cf3bd00588ede2787d5de7b3306d91d70536 /lib
parent9aa1a2b87161c9dc8890b452427fcf3f2ee02b33 (diff)
downloadansible-b6e4266aa56dae4c5762ff74860aa402b44c803c.tar.gz
2.3bug25396 2 (#25486)
Don't fail when creating a Foreman organization fixes(#25299)
Diffstat (limited to 'lib')
-rw-r--r--lib/ansible/modules/remote_management/foreman/foreman.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/remote_management/foreman/foreman.py b/lib/ansible/modules/remote_management/foreman/foreman.py
index 67fe77fc7f..4a6105406d 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']