Skip to content

Commit

Permalink
recover call stdio
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong-ji committed Nov 28, 2024
1 parent dbcfd8f commit 61bb9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def get_obproxy_version(context):
def get_observer_version_by_sql(context, ob_cluster, stdio=None):
stdio.verbose("start get_observer_version_by_sql . input: {0}:{1}".format(ob_cluster.get("db_host"), ob_cluster.get("db_port")))
try:
ob_connector = OBConnector(context=context, ip=ob_cluster.get("db_host"), port=ob_cluster.get("db_port"), username=ob_cluster.get("tenant_sys").get("user"), password=ob_cluster.get("tenant_sys").get("password"), timeout=100)
ob_connector = OBConnector(context=context, ip=ob_cluster.get("db_host"), port=ob_cluster.get("db_port"), username=ob_cluster.get("tenant_sys").get("user"), password=ob_cluster.get("tenant_sys").get("password"), stdio=stdio, timeout=100)
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__())
Expand Down

0 comments on commit 61bb9cf

Please sign in to comment.