Fix launchd check-mode to report changed correctly (#8476)

* Fix launchd check-mode to report changed correctly

* Update changelog fragment.

---------

Co-authored-by: Strahinja Kustudic <strahinjak@nordeus.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Strahinja Kustudic 2024-06-17 07:45:43 +02:00 committed by GitHub
parent 69b72e4a8e
commit 2612ceee37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -514,7 +514,8 @@ def main():
result['status']['current_pid'] != result['status']['previous_pid']):
result['changed'] = True
if module.check_mode:
result['changed'] = True
if result['status']['current_state'] != action:
result['changed'] = True
module.exit_json(**result)