mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-08 05:52:37 +00:00
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:
@@ -503,9 +503,15 @@ def main():
|
|||||||
changed = True
|
changed = True
|
||||||
|
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
check_status = {'values': {
|
||||||
|
"current": release_status['values'],
|
||||||
|
"declared": release_values
|
||||||
|
}}
|
||||||
|
|
||||||
module.exit_json(
|
module.exit_json(
|
||||||
changed=changed,
|
changed=changed,
|
||||||
command=helm_cmd,
|
command=helm_cmd,
|
||||||
|
status=check_status,
|
||||||
stdout='',
|
stdout='',
|
||||||
stderr='',
|
stderr='',
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user