mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
helm: return correct information in check mode (#281)
Fixes: #280 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -537,10 +537,15 @@ def main():
|
||||
changed = True
|
||||
|
||||
if module.check_mode:
|
||||
check_status = {'values': {
|
||||
"current": release_status['values'],
|
||||
"declared": release_values
|
||||
}}
|
||||
check_status = {
|
||||
'values': {
|
||||
"current": {},
|
||||
"declared": {},
|
||||
}
|
||||
}
|
||||
if release_status:
|
||||
check_status['values']['current'] = release_status['values']
|
||||
check_status['values']['declared'] = release_status
|
||||
|
||||
module.exit_json(
|
||||
changed=changed,
|
||||
|
||||
Reference in New Issue
Block a user