From bcf3e29e14c34104e4be4d3aca28b503bdd23b4c Mon Sep 17 00:00:00 2001 From: Ron Gomes Date: Mon, 9 Jun 2014 15:03:51 -0400 Subject: [PATCH] Fix incorrect argument ordering in error message, which provokes a printf-related TypeError. --- library/system/service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/service b/library/system/service index ec622acebcf..6fe57fdbc1a 100644 --- a/library/system/service +++ b/library/system/service @@ -480,7 +480,7 @@ class LinuxService(Service): def get_systemd_status_dict(self): (rc, out, err) = self.execute_command("%s show %s" % (self.enable_cmd, self.__systemd_unit,)) if rc != 0: - self.module.fail_json('failure %d running systemctl show for %r: %s' % (self.__systemd_unit, rc, err)) + self.module.fail_json(msg='failure %d running systemctl show for %r: %s' % (rc, self.__systemd_unit, err)) return dict(line.split('=', 1) for line in out.splitlines()) def get_systemd_service_status(self):