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
94567b21
Commit
94567b21
authored
Oct 28, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4698 from succhiello/feature/allow_deregister_without_ec2_elbs
add NoneType check.
parents
6d0da41a
c1c32c75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
library/cloud/ec2_elb
+5
-4
No files found.
library/cloud/ec2_elb
View file @
94567b21
...
...
@@ -300,10 +300,11 @@ def main():
elb_man
=
ElbManager
(
module
,
instance_id
,
ec2_elbs
,
aws_access_key
,
aws_secret_key
,
region
=
region
)
for
elb
in
ec2_elbs
:
if
not
elb_man
.
exists
(
elb
):
msg
=
"ELB
%
s does not exist"
%
elb
module
.
fail_json
(
msg
=
msg
)
if
ec2_elbs
is
not
None
:
for
elb
in
ec2_elbs
:
if
not
elb_man
.
exists
(
elb
):
msg
=
"ELB
%
s does not exist"
%
elb
module
.
fail_json
(
msg
=
msg
)
if
module
.
params
[
'state'
]
==
'present'
:
elb_man
.
register
(
wait
,
enable_availability_zone
)
...
...
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