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
b3bbca03
Commit
b3bbca03
authored
Jun 04, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional params to get_target_from_rule method in ec2_group
Fixes #7592
parent
9f0d496d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/cloud/ec2_group
+3
-3
No files found.
library/cloud/ec2_group
View file @
b3bbca03
...
...
@@ -106,7 +106,7 @@ def addRulesToLookup(rules, prefix, dict):
grant
.
group_id
,
grant
.
cidr_ip
)]
=
rule
def
get_target_from_rule
(
rule
,
name
,
groups
):
def
get_target_from_rule
(
module
,
rule
,
name
,
group
,
groups
):
"""
Returns tuple of (group_id, ip) after validating rule params.
...
...
@@ -245,7 +245,7 @@ def main():
# Now, go through all provided rules and ensure they are there.
if
rules
:
for
rule
in
rules
:
group_id
,
ip
,
target_group_created
=
get_target_from_rule
(
rule
,
name
,
groups
)
group_id
,
ip
,
target_group_created
=
get_target_from_rule
(
module
,
rule
,
name
,
group
,
groups
)
if
target_group_created
:
changed
=
True
...
...
@@ -285,7 +285,7 @@ def main():
# Now, go through all provided rules and ensure they are there.
if
rules_egress
:
for
rule
in
rules_egress
:
group_id
,
ip
,
target_group_created
=
get_target_from_rule
(
rule
,
name
,
groups
)
group_id
,
ip
,
target_group_created
=
get_target_from_rule
(
module
,
rule
,
name
,
group
,
groups
)
if
target_group_created
:
changed
=
True
...
...
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