Remove double-assignment of EC2 parameters (#4081)

The `source_dest_check` and `termination_protection` variables are being
assigned twice in ec2.py, likely due to an incorrect merge somewhere
along the line.
This commit is contained in:
Ryan Brown 2016-06-30 09:47:06 -04:00 committed by Brian Coca
parent 1d0d5db97a
commit 4845c96b00

View file

@ -1270,8 +1270,6 @@ def startstop_instances(module, ec2, instance_ids, state, instance_tags):
termination_protection = module.params.get('termination_protection')
changed = False
instance_dict_array = []
source_dest_check = module.params.get('source_dest_check')
termination_protection = module.params.get('termination_protection')
if not isinstance(instance_ids, list) or len(instance_ids) < 1:
# Fail unless the user defined instance tags