make `instance_monitoring: false` take effect (#33233)

* make `instance_monitoring: false` take effect

Fixes #33200
pull/33401/head
Daniel Temme 7 years ago committed by Will Thames
parent 4b4c1fdb13
commit cdf660ba1b

@ -307,7 +307,7 @@ def create_launch_config(connection, module):
if classic_link_vpc_id is not None: if classic_link_vpc_id is not None:
launch_config['ClassicLinkVPCId'] = classic_link_vpc_id launch_config['ClassicLinkVPCId'] = classic_link_vpc_id
if instance_monitoring: if instance_monitoring is not None:
launch_config['InstanceMonitoring'] = {'Enabled': instance_monitoring} launch_config['InstanceMonitoring'] = {'Enabled': instance_monitoring}
if classic_link_vpc_security_groups is not None: if classic_link_vpc_security_groups is not None:

Loading…
Cancel
Save