diff --git a/flask-consul/units/cloud/alicloud.py b/flask-consul/units/cloud/alicloud.py index d426084..9728559 100644 --- a/flask-consul/units/cloud/alicloud.py +++ b/flask-consul/units/cloud/alicloud.py @@ -208,7 +208,8 @@ def rds(account,region): 'exp': '-' if i['ExpireTime'] == None else i['ExpireTime'].split('T')[0] } for i in rdsbase_list} - rds_plus = {i['DBInstanceId']:{'cpu':f"{i['DBInstanceCPU']}核", + rds_plus = {i['DBInstanceId']:{'port':int(i['Port']) + 'cpu':f"{i['DBInstanceCPU']}核", 'mem':f"{round(i['DBInstanceMemory']/1024)}GB", 'disk':f"{i['DBInstanceStorage']}GB" } for i in rdsplus_list}