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
27b8d356
Commit
27b8d356
authored
Mar 15, 2013
by
milan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check hostname presence
parent
fc8d9377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
plugins/inventory/ec2.py
+8
-0
No files found.
plugins/inventory/ec2.py
View file @
27b8d356
...
...
@@ -329,7 +329,15 @@ class Ec2Inventory(object):
# Need to load index from cache
self
.
load_index_from_cache
()
if
not
self
.
args
.
host
in
self
.
index
:
# try updating the cache
self
.
do_api_calls_update_cache
()
if
not
self
.
args
.
host
in
self
.
index
:
# host migh not exist anymore
return
self
.
json_format_dict
({},
True
)
(
region
,
instance_id
)
=
self
.
index
[
self
.
args
.
host
]
instance
=
self
.
get_instance
(
region
,
instance_id
)
instance_vars
=
{}
for
key
in
vars
(
instance
):
...
...
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