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
ff1b2006
Commit
ff1b2006
authored
Apr 17, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #155 from jhoekx/inventory-error-fixes
Inventory: AnsibleError is not global...
parents
ff99a22e
aa555b8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/inventory.py
+2
-2
No files found.
lib/ansible/inventory.py
View file @
ff1b2006
...
...
@@ -218,7 +218,7 @@ class Inventory(object):
def
set_variables
(
host
,
variables
):
for
variable
in
variables
:
if
len
(
variable
)
!=
1
:
raise
AnsibleError
(
"Only one item expected in
%
s"
%
(
variable
))
raise
errors
.
AnsibleError
(
"Only one item expected in
%
s"
%
(
variable
))
k
,
v
=
variable
.
items
()[
0
]
self
.
_set_variable
(
host
,
k
,
v
)
...
...
@@ -235,7 +235,7 @@ class Inventory(object):
return
host_name
else
:
raise
AnsibleError
(
"Unknown item in inventory:
%
s"
%
(
item
))
raise
errors
.
AnsibleError
(
"Unknown item in inventory:
%
s"
%
(
item
))
def
_get_variables_from_script
(
self
,
host
):
...
...
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