service: fix systemd compilation error with --check

This commit is contained in:
Paul Sbarra 2013-03-21 22:38:42 -05:00
parent 6dec0d12b0
commit 4975e11699

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)