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
98a55319
Commit
98a55319
authored
Jun 14, 2015
by
Victor Schröder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makes the API requests to return nodes' information too
parent
dbb0304c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
plugins/inventory/ec2.py
+5
-3
No files found.
plugins/inventory/ec2.py
View file @
98a55319
...
...
@@ -420,8 +420,8 @@ class Ec2Inventory(object):
self
.
fail_with_error
(
error
)
def
get_elasticache_clusters_by_region
(
self
,
region
):
''' Makes an AWS API call to the list of ElastiCache clusters
in a
particular region.'''
''' Makes an AWS API call to the list of ElastiCache clusters
(with
nodes' info) in a
particular region.'''
# ElastiCache boto module doesn't provide a get_all_intances method,
# that's why we need to call describe directly (it would be called by
...
...
@@ -429,7 +429,9 @@ class Ec2Inventory(object):
try
:
conn
=
elasticache
.
connect_to_region
(
region
)
if
conn
:
response
=
conn
.
describe_cache_clusters
()
# show_cache_node_info = True
# because we also want nodes' information
response
=
conn
.
describe_cache_clusters
(
None
,
None
,
None
,
True
)
except
boto
.
exception
.
BotoServerError
as
e
:
error
=
e
.
reason
...
...
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