fix cm_ctl 查询环境异常

This commit is contained in:
liuheng 2023-11-01 14:57:09 +08:00
parent 9a92a12b8b
commit 6301ff6515

View File

@ -74,7 +74,7 @@ class DropnodeImpl():
if envFile:
self.envFile = envFile
else:
self.envFile = ClusterConstants.ETC_PROFILE
self.envFile = ClusterConstants.HOME_USER_BASHRC % self.user
gphomepath = EnvUtil.getEnv("GPHOME")
if gphomepath:
self.gphomepath = gphomepath