diff --git a/changelogs/fragments/1706-vmware_vsan_health_info.yml b/changelogs/fragments/1706-vmware_vsan_health_info.yml new file mode 100644 index 000000000..a3db51a2f --- /dev/null +++ b/changelogs/fragments/1706-vmware_vsan_health_info.yml @@ -0,0 +1,2 @@ +bugfixes: + - vmware_vsan_health_info - Fix return value (https://github.com/ansible-collections/community.vmware/pull/1706). diff --git a/plugins/modules/vmware_vsan_health_info.py b/plugins/modules/vmware_vsan_health_info.py index d369efb57..89db649de 100644 --- a/plugins/modules/vmware_vsan_health_info.py +++ b/plugins/modules/vmware_vsan_health_info.py @@ -167,7 +167,7 @@ def gather_info(self): health = json.dumps(cluster_health, cls=VmomiSupport.VmomiJSONEncoder, sort_keys=True, strip_dynamic=True) - self.module.exit_json(changed=False, vsan_health_info=health) + self.module.exit_json(changed=False, vsan_health_info=json.loads(health)) def main():