InService percent key as literal percent (i.e 50, not .5)

This commit is contained in:
Robb Wagoner 2016-01-12 10:46:21 -07:00
parent 3226ad4284
commit 4be856a40c

View file

@ -158,7 +158,7 @@ def get_elb_info(connection,elb):
elb_info['instances_outofservice_count'] = len(elb_info['instances_outofservice'])
elb_info['instances_inservice_percent'] = float(elb_info['instances_inservice_count'])/(
float(elb_info['instances_inservice_count']) +
float(elb_info['instances_outofservice_count']))
float(elb_info['instances_outofservice_count']))*100
return elb_info