k8s: Fix .to_dict not needed (#56147)
* k8s: Fix .to_dict not needed * Add changelog fragment
This commit is contained in:
parent
7cd229aa97
commit
7364e79c0d
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/56147-k8s-update-with-force.yaml
Normal file
2
changelogs/fragments/56147-k8s-update-with-force.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- k8s - resource updates applied with force work correctly now
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue