diff options
author | Abhijeet Kasurde <akasurde@redhat.com> | 2020-10-09 22:16:16 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 11:46:16 -0500 |
commit | 2faf48f5f9e7632ede7306e8e59c05e2a4fbfaf9 (patch) | |
tree | c84b804b3770a867a2e5aa9c48976eae9a6e8375 | |
parent | 527dfa368ae5715df3a2209c33950c53edc25e70 (diff) | |
download | ansible-2faf48f5f9e7632ede7306e8e59c05e2a4fbfaf9.tar.gz |
[2.8] kubectl: Follow up fix in connection plugin (#72131)
PR #71535 broke, _build_exec_cmd API in kubectl connection
plugin.
Fixes: #72171
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
-rw-r--r-- | changelogs/fragments/71535_kubectl_followup.yml | 2 | ||||
-rw-r--r-- | lib/ansible/plugins/connection/kubectl.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/changelogs/fragments/71535_kubectl_followup.yml b/changelogs/fragments/71535_kubectl_followup.yml new file mode 100644 index 0000000000..2f8689074a --- /dev/null +++ b/changelogs/fragments/71535_kubectl_followup.yml @@ -0,0 +1,2 @@ +bugfixes: +- kubectl - follow up fix in _build_exec_cmd API (https://github.com/ansible/ansible/issues/72171). diff --git a/lib/ansible/plugins/connection/kubectl.py b/lib/ansible/plugins/connection/kubectl.py index cfa8a38f00..a7a9047de0 100644 --- a/lib/ansible/plugins/connection/kubectl.py +++ b/lib/ansible/plugins/connection/kubectl.py @@ -270,7 +270,7 @@ class Connection(ConnectionBase): local_cmd += ['--'] + cmd censored_local_cmd += ['--'] + cmd - return local_cmd + return local_cmd, censored_local_cmd def _connect(self, port=None): """ Connect to the container. Nothing to do """ |