!689 修复postuninstall失败问题

Merge pull request !689 from zhangxubo/master_bugfix
This commit is contained in:
opengauss_bot 2024-01-27 06:16:09 +00:00 committed by Gitee
commit 974b07bc4f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -859,13 +859,9 @@ class PostUninstallImpl:
self.logger.log("Please enter password for root.")
retry_times = 0
user_profile = self.context.mpprcFile
if not self.context.mpprcFile:
user_profile = ProfileFile.get_user_bashrc(self.context.user)
while True:
try:
self.sshTool.createTrust(username,
user_profile,
Ips,
action='gs_postuninstall')
break