From f7c044badf90ddbf4999eb867775433811e00f60 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) --- lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py b/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py index a571310d88f..bb789a0da3e 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_elb_facts.py @@ -156,7 +156,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