Fix incorrect argument ordering in error message, which provokes a
printf-related TypeError.
This commit is contained in:
parent
2c9cba0631
commit
bcf3e29e14
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ class LinuxService(Service):
|
||||||
def get_systemd_status_dict(self):
|
def get_systemd_status_dict(self):
|
||||||
(rc, out, err) = self.execute_command("%s show %s" % (self.enable_cmd, self.__systemd_unit,))
|
(rc, out, err) = self.execute_command("%s show %s" % (self.enable_cmd, self.__systemd_unit,))
|
||||||
if rc != 0:
|
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())
|
return dict(line.split('=', 1) for line in out.splitlines())
|
||||||
|
|
||||||
def get_systemd_service_status(self):
|
def get_systemd_service_status(self):
|
||||||
|
|
Loading…
Reference in a new issue