Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Return status in check mode (#192)
Browse files Browse the repository at this point in the history
It is useful to return both the current values of the release, as well as the proposed values.
  • Loading branch information
Geethree authored Sep 29, 2020
1 parent 0f3fef9 commit 7946b39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/modules/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,15 @@ def main():
changed = True

if module.check_mode:
check_status = {'values': {
"current": release_status['values'],
"declared": release_values
}}

module.exit_json(
changed=changed,
command=helm_cmd,
status=check_status,
stdout='',
stderr='',
)
Expand Down

0 comments on commit 7946b39

Please sign in to comment.