From 7946b398a7fd42bd8fa8cfb02ccbf03b2d135a60 Mon Sep 17 00:00:00 2001 From: Gerald Spencer Date: Tue, 29 Sep 2020 11:09:43 -0700 Subject: [PATCH] Return status in check mode (#192) It is useful to return both the current values of the release, as well as the proposed values. --- plugins/modules/helm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/modules/helm.py b/plugins/modules/helm.py index c6870efa..ea62bb3f 100644 --- a/plugins/modules/helm.py +++ b/plugins/modules/helm.py @@ -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='', )