mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-04-21 16:21:28 +00:00
kubectl: correct usage in console (#204)
kubectl exec is printed twice in the console log. Fixes: #200 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
2
changelogs/fragments/200_kubectl_fix.yml
Normal file
2
changelogs/fragments/200_kubectl_fix.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- kubectl plugin - correct console log (https://github.com/ansible-collections/community.kubernetes/issues/200).
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user