mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-07-28 02:14:41 +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):
|
def _build_exec_cmd(self, cmd):
|
||||||
""" Build the local kubectl exec command to run cmd on remote_host
|
""" 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
|
# Build command options based on doc string
|
||||||
doc_yaml = AnsibleLoader(self.documentation).get_single_data()
|
doc_yaml = AnsibleLoader(self.documentation).get_single_data()
|
||||||
|
|||||||
Reference in New Issue
Block a user