Add missing msg keyword in fail_json (#25635)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/25642/head
Abhijeet Kasurde 8 years ago committed by René Moser
parent f380fd84c5
commit b7558f5018

@ -238,7 +238,7 @@ class AnsibleCloudStack(object):
if self.network_acl: if self.network_acl:
return self._get_by_key(key, self.network_acl) return self._get_by_key(key, self.network_acl)
else: 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): def get_vpc(self, key=None):
"""Return a VPC dictionary or the value of given key of.""" """Return a VPC dictionary or the value of given key of."""

@ -228,7 +228,7 @@ class DBusWrapper(object):
rc, out, err = self.module.run_command(command) rc, out, err = self.module.run_command(command)
if self.dbus_session_bus_address is None and rc == 127: 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: else:
extra_environment = {'DBUS_SESSION_BUS_ADDRESS': self.dbus_session_bus_address} extra_environment = {'DBUS_SESSION_BUS_ADDRESS': self.dbus_session_bus_address}
rc, out, err = self.module.run_command(command, environ_update=extra_environment) rc, out, err = self.module.run_command(command, environ_update=extra_environment)

Loading…
Cancel
Save