From cdf660ba1b568acb4de2a97828b578a5aaada287 Mon Sep 17 00:00:00 2001 From: Daniel Temme Date: Thu, 30 Nov 2017 01:12:43 +0100 Subject: [PATCH] make `instance_monitoring: false` take effect (#33233) * make `instance_monitoring: false` take effect Fixes #33200 --- lib/ansible/modules/cloud/amazon/ec2_lc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_lc.py b/lib/ansible/modules/cloud/amazon/ec2_lc.py index 6ea8fb23bd8..74787d1a74d 100755 --- a/lib/ansible/modules/cloud/amazon/ec2_lc.py +++ b/lib/ansible/modules/cloud/amazon/ec2_lc.py @@ -307,7 +307,7 @@ def create_launch_config(connection, module): if classic_link_vpc_id is not None: launch_config['ClassicLinkVPCId'] = classic_link_vpc_id - if instance_monitoring: + if instance_monitoring is not None: launch_config['InstanceMonitoring'] = {'Enabled': instance_monitoring} if classic_link_vpc_security_groups is not None: