!815 fix ci门禁删除gs工具

Merge pull request !815 from liuheng/fix13
This commit is contained in:
opengauss_bot 2024-08-19 13:16:08 +00:00 committed by Gitee
commit 842af7e9d4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -441,7 +441,9 @@ class SshTool():
else:
if SecurityChecker.check_is_ip(host_list[0]):
self.is_ip = True
if not self.is_ip:
host = host_list
else:
self.is_ip = False
host = HostsUtil.hostname_list_to_ip_list(host_list)
return host