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
12c0378f
Commit
12c0378f
authored
Sep 23, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip null id route tables when adding/deleting them in ec2_vpc
Fixes #8552
parent
d1037635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
library/cloud/ec2_vpc
+3
-0
No files found.
library/cloud/ec2_vpc
View file @
12c0378f
...
...
@@ -451,6 +451,7 @@ def create_vpc(module, vpc_conn):
old_rt
=
vpc_conn
.
get_all_route_tables
(
filters
=
{
'association.subnet_id'
:
rsn
.
id
,
'vpc_id'
:
vpc
.
id
}
)
old_rt
=
[
x
for
x
in
old_rt
if
x
.
id
!=
None
]
if
len
(
old_rt
)
==
1
:
old_rt
=
old_rt
[
0
]
association_id
=
None
...
...
@@ -474,6 +475,8 @@ def create_vpc(module, vpc_conn):
# table yet.
all_rts
=
vpc_conn
.
get_all_route_tables
(
filters
=
{
'vpc-id'
:
vpc
.
id
})
for
rt
in
all_rts
:
if
rt
.
id
is
None
:
continue
delete_rt
=
True
for
newrt
in
all_route_tables
:
if
newrt
.
id
==
rt
.
id
:
...
...
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