修改获取dn逻辑

This commit is contained in:
gyt0221
2021-03-11 15:49:11 +08:00
parent a2dd05c149
commit 2224dabdef

View File

@ -4161,8 +4161,7 @@ class DefaultValue():
try: try:
primaryFlag = "Primary" primaryFlag = "Primary"
count = 0 count = 0
while count < 60: while count < 30:
count = 0
cmd = "source {0} && gs_om -t status --detail".format( cmd = "source {0} && gs_om -t status --detail".format(
userProfile) userProfile)
(status, output) = subprocess.getstatusoutput(cmd) (status, output) = subprocess.getstatusoutput(cmd)