Update tencent_cloud.py

pull/42/head
StarsL.cn 2022-11-04 10:42:49 +08:00 committed by GitHub
parent b43f3277e5
commit 237b47daee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def ecs(account,region):
'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]
'exp': '0000-00-00' if i.ExpiredTime is None else i.ExpiredTime.split('T')[0]
} for i in ecs_list}
offset = offset + 100
ecs_dict.update(ecs_dict_temp)