mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
k8s: Fix .to_dict not needed (#56147)
* k8s: Fix .to_dict not needed * Add changelog fragment
This commit is contained in:
@@ -318,7 +318,7 @@ class KubernetesRawModule(KubernetesAnsibleModule):
|
||||
result['result'] = k8s_obj
|
||||
if wait:
|
||||
success, result['result'], result['duration'] = self.wait(resource, definition, wait_timeout, condition=wait_condition)
|
||||
match, diffs = self.diff_objects(existing.to_dict(), result['result'].to_dict())
|
||||
match, diffs = self.diff_objects(existing.to_dict(), result['result'])
|
||||
result['changed'] = not match
|
||||
result['method'] = 'replace'
|
||||
result['diff'] = diffs
|
||||
|
||||
Reference in New Issue
Block a user