aliyun redis fix ip

pull/48/head
starsliao 2022-12-23 14:44:27 +08:00
parent 4fc2b8ceaf
commit ef30a6c531
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ def redis(account,region):
redis_dict = {i['InstanceId']:{'name':i.get('InstanceName',f"未命名{i['InstanceId']}"),
'domain':i['ConnectionDomain'],
'ip':i['PrivateIp'],
'ip':i.get('PrivateIp','null'),
'port':i['Port'],
'region':region,
'group':group_dict.get(i['ResourceGroupId'],''),