Return status in check mode (#192)

It is useful to return both the current values of the release, as well as the proposed values.
This commit is contained in:
Gerald Spencer
2020-09-29 11:09:43 -07:00
committed by GitHub
parent 0f3fef927e
commit 7946b398a7

View File

@@ -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='',
)