service: fix systemd compilation error with --check
This commit is contained in:
parent
6dec0d12b0
commit
4975e11699
1 changed files with 1 additions and 1 deletions
2
service
2
service
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue