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:
Abhijeet Kasurde
2020-08-31 09:29:27 +05:30
committed by GitHub
parent c6fe654853
commit 23f9588732
2 changed files with 4 additions and 1 deletions

View File

@@ -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()