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
2d7f0e28
Commit
2d7f0e28
authored
Oct 20, 2013
by
Jim Dalton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Availability zone should not be required
parent
3957238f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
library/cloud/elasticache
+3
-3
No files found.
library/cloud/elasticache
View file @
2d7f0e28
...
...
@@ -399,9 +399,11 @@ class ElastiCacheManager(object):
unmodifiable_data
=
{
'node_type'
:
self
.
data
[
'CacheNodeType'
],
'engine'
:
self
.
data
[
'Engine'
],
'zone'
:
self
.
data
[
'PreferredAvailabilityZone'
],
'cache_port'
:
self
.
_get_port
()
}
# Only check for modifications if zone is specified
if
self
.
zone
is
not
None
:
unmodifiable_data
[
'zone'
]
=
self
.
data
[
'PreferredAvailabilityZone'
]
for
key
,
value
in
unmodifiable_data
.
iteritems
():
if
getattr
(
self
,
key
)
!=
value
:
return
True
...
...
@@ -506,8 +508,6 @@ def main():
if
state
==
'present'
and
not
num_nodes
:
module
.
fail_json
(
msg
=
"'num_nodes' is a required parameter. Please specify num_nodes > 0"
)
if
state
==
'present'
and
not
zone
:
module
.
fail_json
(
msg
=
"'zone' is a required parameter. Please specify an availability zone"
)
if
not
aws_secret_key
:
if
'AWS_SECRET_KEY'
in
os
.
environ
:
...
...
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