diff --git a/lib/ansible/module_utils/k8s_common.py b/lib/ansible/module_utils/k8s_common.py index 7800898fff..dfd9ec6e3e 100644 --- a/lib/ansible/module_utils/k8s_common.py +++ b/lib/ansible/module_utils/k8s_common.py @@ -226,7 +226,7 @@ class KubernetesAnsibleModule(AnsibleModule): self.exit_json(**return_attributes) else: self.helper.log('Existing:') - self.helper.log(json.dumps(existing.to_dict(), indent=4)) + self.helper.log(existing.to_str(), indent=4) self.helper.log('\nDifferences:') self.helper.log(json.dumps(diff, indent=4)) # Differences exist between the existing obj and requested params