!597 fix cm_ctl 查询环境异常

Merge pull request !597 from liuheng/master
This commit is contained in:
opengauss_bot 2023-11-07 12:20:16 +00:00 committed by Gitee
commit 5644acd567
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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