Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
24cfcd1f
Commit
24cfcd1f
authored
Apr 23, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6985 from jimi-c/issue_6763_ec2_vpc_params
Ensure params were set in ec2_vpc before accessing them
parents
38b49476
46ea3155
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/cloud/ec2_vpc
+2
-2
No files found.
library/cloud/ec2_vpc
View file @
24cfcd1f
...
@@ -328,7 +328,7 @@ def create_vpc(module, vpc_conn):
...
@@ -328,7 +328,7 @@ def create_vpc(module, vpc_conn):
# Process all subnet properties
# Process all subnet properties
if
not
isinstance
(
subnets
,
list
):
if
subnets
and
not
isinstance
(
subnets
,
list
):
module
.
fail_json
(
msg
=
'subnets needs to be a list of cidr blocks'
)
module
.
fail_json
(
msg
=
'subnets needs to be a list of cidr blocks'
)
current_subnets
=
vpc_conn
.
get_all_subnets
(
filters
=
{
'vpc_id'
:
vpc
.
id
})
current_subnets
=
vpc_conn
.
get_all_subnets
(
filters
=
{
'vpc_id'
:
vpc
.
id
})
...
@@ -405,7 +405,7 @@ def create_vpc(module, vpc_conn):
...
@@ -405,7 +405,7 @@ def create_vpc(module, vpc_conn):
# think of without using painful aws ids. Hopefully boto will add
# think of without using painful aws ids. Hopefully boto will add
# the replace-route-table API to make this smoother and
# the replace-route-table API to make this smoother and
# allow control of the 'main' routing table.
# allow control of the 'main' routing table.
if
not
isinstance
(
route_tables
,
list
):
if
route_tables
and
not
isinstance
(
route_tables
,
list
):
module
.
fail_json
(
msg
=
'route tables need to be a list of dictionaries'
)
module
.
fail_json
(
msg
=
'route tables need to be a list of dictionaries'
)
# Work through each route table and update/create to match dictionary array
# Work through each route table and update/create to match dictionary array
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment