From b7558f50183ffbd03973eabf3b425d95ff99c153 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 13 Jun 2017 14:41:11 +0530 Subject: [PATCH] Add missing msg keyword in fail_json (#25635) Signed-off-by: Abhijeet Kasurde --- lib/ansible/module_utils/cloudstack.py | 2 +- lib/ansible/modules/system/dconf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/cloudstack.py b/lib/ansible/module_utils/cloudstack.py index f65197ffd20..2836aca6589 100644 --- a/lib/ansible/module_utils/cloudstack.py +++ b/lib/ansible/module_utils/cloudstack.py @@ -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.""" diff --git a/lib/ansible/modules/system/dconf.py b/lib/ansible/modules/system/dconf.py index e890682a3f3..76b6fe4cdad 100644 --- a/lib/ansible/modules/system/dconf.py +++ b/lib/ansible/modules/system/dconf.py @@ -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)