Update tencent_cloud.py

main
StarsL.cn 2025-02-18 10:00:14 +08:00 committed by GitHub
parent b9bd174c6b
commit 097ea81387
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ def ecs(account,region,isextip=False):
'ostype': 'windows' if 'win' in i.OsName.lower() else 'linux',
'status': i.InstanceState, 'region': region, 'ip':i.PrivateIpAddresses[0],
'cpu': f'{i.CPU}','mem': f'{i.Memory}GB',
'exp': '按量' if i.ExpiredTime is None else i.ExpiredTime.split('T')[0],'ecstag': i.get('Tags',[])
'exp': '按量' if i.ExpiredTime is None else i.ExpiredTime.split('T')[0],'ecstag': [] if i.Tags is None else i.Tags)
} for i in ecs_list}
offset = offset + 100
ecs_dict.update(ecs_dict_temp)