Skip to content

Commit

Permalink
Update alicloud.py fix #94
Browse files Browse the repository at this point in the history
  • Loading branch information
starsliao authored Oct 9, 2023
1 parent 15aaf06 commit 109cbe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask-consul/units/cloud/alicloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def rds(account,region):
'status':i['DBInstanceStatus'],
'itype':i['DBInstanceType'],
'ver':i['EngineVersion'],
'exp': '-' if i['ExpireTime'] == None else i['ExpireTime'].split('T')[0],
'exp': '-' if i.get('ExpireTime',None) == None else i.get('ExpireTime','-T').split('T')[0],
'cpu':'无','mem':'无','disk':'无'
} for i in rdsbase_list}
rds_dict.update(rds_dict_temp)
Expand Down

0 comments on commit 109cbe5

Please sign in to comment.