mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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:
parent
69b72e4a8e
commit
2612ceee37
2 changed files with 4 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- launched - correctly report changed status in check mode (https://github.com/ansible-collections/community.general/pull/8406).
|
|
@ -514,6 +514,7 @@ def main():
|
||||||
result['status']['current_pid'] != result['status']['previous_pid']):
|
result['status']['current_pid'] != result['status']['previous_pid']):
|
||||||
result['changed'] = True
|
result['changed'] = True
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
if result['status']['current_state'] != action:
|
||||||
result['changed'] = True
|
result['changed'] = True
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue