Skip to content

Commit

Permalink
remove 'ecs.' prefix on alicloud instance types
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpeteuil committed Aug 7, 2018
1 parent 5743b1f commit aac9753
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mcc/cldcnct.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ def adj_nodes_ali(ali_nodes):
node.public_ips = ip_to_str(node.public_ips)
node.zone = node.extra['zone_id']
node.size = node.extra['instance_type']
if node.size.startswith('ecs.'):
node.size = node.size[len('ecs.'):]
return ali_nodes


Expand Down

0 comments on commit aac9753

Please sign in to comment.