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

Add missing msg keyword in fail_json (#25635)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2017-06-13 14:41:11 +05:30 committed by René Moser
parent f380fd84c5
commit b7558f5018
2 changed files with 2 additions and 2 deletions

View file

@ -238,7 +238,7 @@ class AnsibleCloudStack(object):
if self.network_acl:
return self._get_by_key(key, self.network_acl)
else:
self.fail_json("Network ACL %s not found" % self.module.params.get('network_acl'))
self.fail_json(msg="Network ACL %s not found" % self.module.params.get('network_acl'))
def get_vpc(self, key=None):
"""Return a VPC dictionary or the value of given key of."""

View file

@ -228,7 +228,7 @@ class DBusWrapper(object):
rc, out, err = self.module.run_command(command)
if self.dbus_session_bus_address is None and rc == 127:
self.module.fail_json("Failed to run passed-in command, dbus-run-session faced an internal erorr: %s" % err)
self.module.fail_json(msg="Failed to run passed-in command, dbus-run-session faced an internal error: %s" % err)
else:
extra_environment = {'DBUS_SESSION_BUS_ADDRESS': self.dbus_session_bus_address}
rc, out, err = self.module.run_command(command, environ_update=extra_environment)