From 905b9b162da78b4b226b08fc94aa2d2bd79071ed Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Sat, 20 Apr 2019 11:52:52 +0530 Subject: [PATCH] [2.8] k8s: fix API call to _wait_for_response (cherry picked from commit 94f295e4a1def85a64dfb0f9d2e97e5067a92ea0) Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/k8s-fix_wait_for_response.yaml | 2 ++ lib/ansible/module_utils/k8s/scale.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/k8s-fix_wait_for_response.yaml diff --git a/changelogs/fragments/k8s-fix_wait_for_response.yaml b/changelogs/fragments/k8s-fix_wait_for_response.yaml new file mode 100644 index 00000000000..ce2eeb39eda --- /dev/null +++ b/changelogs/fragments/k8s-fix_wait_for_response.yaml @@ -0,0 +1,2 @@ +minor_changes: + - Fix API call to _wait_for_response in k8s modules (https://github.com/ansible/ansible/pull/53937). diff --git a/lib/ansible/module_utils/k8s/scale.py b/lib/ansible/module_utils/k8s/scale.py index 73d3170046b..af05484cdcb 100644 --- a/lib/ansible/module_utils/k8s/scale.py +++ b/lib/ansible/module_utils/k8s/scale.py @@ -136,7 +136,7 @@ class KubernetesAnsibleScaleModule(KubernetesRawModule): return_obj = self._read_stream(resource, w, stream, name, replicas) if not return_obj: - return_obj = self._wait_for_response(name, namespace) + return_obj = self._wait_for_response(resource, name, namespace) return return_obj