mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Remove diff and request data. Add more return docs. (#34230)
This commit is contained in:
committed by
GitHub
parent
32f963aa0f
commit
d73be7f461
@@ -167,9 +167,6 @@ class KubernetesAnsibleModule(AnsibleModule):
|
||||
|
||||
return_attributes = dict(changed=False, result=dict())
|
||||
|
||||
if self._diff:
|
||||
return_attributes['request'] = self.helper.request_body_from_params(self.params)
|
||||
|
||||
if self.helper.base_model_name_snake.endswith('list'):
|
||||
k8s_obj = self._read(name, namespace)
|
||||
return_attributes['result'] = k8s_obj.to_dict()
|
||||
@@ -225,8 +222,6 @@ class KubernetesAnsibleModule(AnsibleModule):
|
||||
if match:
|
||||
return_attributes['result'] = existing.to_dict()
|
||||
self.exit_json(**return_attributes)
|
||||
elif self._diff:
|
||||
return_attributes['differences'] = diff
|
||||
# Differences exist between the existing obj and requested params
|
||||
if not self.check_mode:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user