mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2024-09-14 20:13:21 +02:00 
			
		
		
		
	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
			
			
This commit is contained in:
		
							parent
							
								
									a1484a0e5b
								
							
						
					
					
						commit
						e9071c62ba
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1223,6 +1223,8 @@ def startstop_instances(module, ec2, instance_ids, state, instance_tags): | |||
| 
 | ||||
|     wait = module.params.get('wait') | ||||
|     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 | ||||
|     instance_dict_array = [] | ||||
|     source_dest_check = module.params.get('source_dest_check') | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue