Skip to content

Commit 85110c4

Browse files
committed
fix bug
1 parent 0ab2124 commit 85110c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flask-consul/units/cloud/tencent_cloud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def redis(account,region):
255255
'region':region,
256256
'group':group_dict.get(str(i.ProjectId),'无'),
257257
'status': '运行中' if i.Status == 2 else '非运行中',
258-
'itype':{2:'主从',3:'主从',4:'集群',5:'单机'6:'主从',7:'集群',8:'主从',9:'集群',15:'主从',16:'集群',17:'主从',18:'集群'}.get(i.Type,i.Type),
258+
'itype':{2:'主从', 3:'主从', 4:'集群', 5:'单机', 6:'主从', 7:'集群', 8:'主从', 9:'集群', 15:'主从', 16:'集群', 17:'主从', 18:'集群'}.get(i.Type,i.Type),
259259
'ver':i.CurrentRedisVersion,
260260
'exp': '按量' if i.DeadlineTime == "0000-00-00 00:00:00" else i.DeadlineTime.split(' ')[0],
261261
'mem':f"{i.Size}MB",

0 commit comments

Comments
 (0)