InService percent key as literal percent (i.e 50, not .5)
This commit is contained in:
parent
8f2eff6ca8
commit
f7c044badf
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ def get_elb_info(connection,elb):
|
||||||
elb_info['instances_outofservice_count'] = len(elb_info['instances_outofservice'])
|
elb_info['instances_outofservice_count'] = len(elb_info['instances_outofservice'])
|
||||||
elb_info['instances_inservice_percent'] = float(elb_info['instances_inservice_count'])/(
|
elb_info['instances_inservice_percent'] = float(elb_info['instances_inservice_count'])/(
|
||||||
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
|
return elb_info
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue