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

service: fix systemd compilation error with --check

This commit is contained in:
Paul Sbarra 2013-03-21 22:38:42 -05:00
parent 934029842e
commit 4cfda2a965

View file

@ -499,7 +499,7 @@ class LinuxService(Service):
self.changed = True
if self.module.check_mode and changed:
if self.module.check_mode and self.changed:
self.module.exit_json(changed=True)
return self.execute_command("%s %s %s" % args)