Skip to content

Commit

Permalink
fix stack (#331)
Browse files Browse the repository at this point in the history
* fix KubernetesClient

* fix KubernetesClient

* fix KubernetesClient

* fix KubernetesClient

* fix "nodename nor servname provided"

* delete build tag

* fix ssh stdio print

* fix remote_client

* fix example operator.yml

* fix get_obproxy_version on rca

* fix : cat with grep >> grep -e

* fix stack
  • Loading branch information
wayyoungboy authored Jul 16, 2024
1 parent 5e8cea2 commit 900b2e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def upload_file(ssh_client, local_path, remote_path, stdio=None):
"""
stdio.verbose("Please wait a moment, upload file to server {0}, local file path {1}, remote file path {2}".format(ssh_client.get_name(), local_path, remote_path))
try:
ssh_client.upload(local_path, remote_path)
ssh_client.upload(remote_path, local_path)
except Exception as e:
stdio.error("Upload File Failed error: {0}".format(e))

Expand Down
2 changes: 1 addition & 1 deletion handler/gather/gather_obstack2.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __chmod_obstack2(self, ssh_client):

def __is_obstack_exists(self, ssh_client):
cmd = "test -e {file} && echo exists".format(file=const.OBSTACK2_DEFAULT_INSTALL_PATH)
stdout = ssh_client.exec_cmd(cmd)[0]
stdout = ssh_client.exec_cmd(cmd)
if stdout == 'exists':
return False
else:
Expand Down

0 comments on commit 900b2e8

Please sign in to comment.