diff --git a/changelogs/fragments/200_kubectl_fix.yml b/changelogs/fragments/200_kubectl_fix.yml new file mode 100644 index 00000000..91430dc1 --- /dev/null +++ b/changelogs/fragments/200_kubectl_fix.yml @@ -0,0 +1,2 @@ +minor_changes: +- kubectl plugin - correct console log (https://github.com/ansible-collections/community.kubernetes/issues/200). diff --git a/plugins/connection/kubectl.py b/plugins/connection/kubectl.py index f3015e2e..5c16fe9e 100644 --- a/plugins/connection/kubectl.py +++ b/plugins/connection/kubectl.py @@ -228,7 +228,8 @@ class Connection(ConnectionBase): def _build_exec_cmd(self, cmd): """ Build the local kubectl exec command to run cmd on remote_host """ - local_cmd = censored_local_cmd = [self.transport_cmd] + local_cmd = [self.transport_cmd] + censored_local_cmd = [self.transport_cmd] # Build command options based on doc string doc_yaml = AnsibleLoader(self.documentation).get_single_data()