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:
parent
934029842e
commit
4cfda2a965
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue