Add missing variable initializations

Without this, «ec2: state=stopped instance_ids=…» would fail with a
traceback like this:

    if inst.get_attribute('sourceDestCheck')['sourceDestCheck'] != source_dest_check:
NameError: global name 'source_dest_check' is not defined
reviewable/pr18780/r1
Abhijit Menon-Sen 10 years ago
parent f707a711cd
commit ebd8b12e15

@ -1226,6 +1226,8 @@ def startstop_instances(module, ec2, instance_ids, state, instance_tags):
wait = module.params.get('wait') wait = module.params.get('wait')
wait_timeout = int(module.params.get('wait_timeout')) wait_timeout = int(module.params.get('wait_timeout'))
source_dest_check = module.params.get('source_dest_check')
termination_protection = module.params.get('termination_protection')
changed = False changed = False
instance_dict_array = [] instance_dict_array = []

Loading…
Cancel
Save