Merge pull request #2214 from fperks/fix-ec2-error-on-instance-status-change
Fix error on ec2 status change
This commit is contained in:
commit
f1fc76d732
1 changed files with 2 additions and 0 deletions
|
@ -1230,6 +1230,8 @@ 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
|
||||
|
|
Loading…
Add table
Reference in a new issue