mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-27 00:46:34 +00:00
service: fix systemd compilation error with --check
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user