!335 fix gs_om -t status for rolling upgrade

Merge pull request !335 from zhengxue/master_dev
This commit is contained in:
opengauss-bot
2022-09-22 06:24:05 +00:00
committed by Gitee

View File

@ -3286,13 +3286,13 @@ class DefaultValue():
if row['node_host'] in nodes: if row['node_host'] in nodes:
if step == -1: if step == -1:
step = int(row['step']) step = int(row['step'])
else:
if step <= int(row['step']):
continue
else: else:
logger.debug("The nodes %s step is not all %s" if step <= int(row['step']):
% (nodes, step)) continue
return False else:
logger.debug("The nodes %s step is not all %s"
% (nodes, step))
return False
logger.debug("The nodes %s step is all %s" % (nodes, step)) logger.debug("The nodes %s step is all %s" % (nodes, step))
return True return True
except Exception as e: except Exception as e: