Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
wayyoungboy committed Jul 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent fa5fe51 commit 274e573
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions common/command.py
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@ def __init__(self, stdio=None):
def run(self, cmd):
try:
self.stdio.verbose("[local host] run cmd = [{0}] on localhost".format(cmd))

out = subprocess.Popen(cmd, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, shell=True, executable='/bin/bash')
stdout, stderr = out.communicate()
if stderr:
@@ -350,7 +349,6 @@ def get_observer_version_by_sql(ob_cluster, stdio=None):
ob_version_info = ob_connector.execute_sql("select version();")
except Exception as e:
raise Exception("get_observer_version_by_sql Exception. Maybe cluster'info is error: " + e.__str__())

ob_version = ob_version_info[0]
stdio.verbose("get_observer_version_by_sql ob_version_info is {0}".format(ob_version))
version = re.findall(r'OceanBase(_)?(.CE)?-v(.+)', ob_version[0])

0 comments on commit 274e573

Please sign in to comment.