mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Initialize the value of vpc_id variable
This commit is contained in:
parent
00613cd4f3
commit
c9cc8d0b70
1 changed files with 1 additions and 0 deletions
|
@ -783,6 +783,7 @@ def create_instances(module, ec2, vpc, override_count=None):
|
||||||
module.fail_json(msg = str("Use only one type of parameter (group_name) or (group_id)"))
|
module.fail_json(msg = str("Use only one type of parameter (group_name) or (group_id)"))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
vpc_id = None
|
||||||
if vpc_subnet_id:
|
if vpc_subnet_id:
|
||||||
vpc_id = vpc.get_all_subnets(subnet_ids=[vpc_subnet_id])[0].vpc_id
|
vpc_id = vpc.get_all_subnets(subnet_ids=[vpc_subnet_id])[0].vpc_id
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue