From 4be856a40cc3492df5a95b92b6e81dc007427784 Mon Sep 17 00:00:00 2001 From: Robb Wagoner Date: Tue, 12 Jan 2016 10:46:21 -0700 Subject: [PATCH] InService percent key as literal percent (i.e 50, not .5) --- cloud/amazon/ec2_elb_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/amazon/ec2_elb_facts.py b/cloud/amazon/ec2_elb_facts.py index 0c832382564..8b7853ac6f6 100644 --- a/cloud/amazon/ec2_elb_facts.py +++ b/cloud/amazon/ec2_elb_facts.py @@ -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