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
12a21d94
Commit
12a21d94
authored
Sep 30, 2013
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'allow_types_in_ini' of
https://github.com/bcoca/ansible
into bcoca-allow_types_in_ini
parents
0d81c2ec
771435de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
lib/ansible/inventory/ini.py
+2
-1
No files found.
lib/ansible/inventory/ini.py
View file @
12a21d94
...
@@ -25,6 +25,7 @@ from ansible.inventory.expand_hosts import expand_hostname_range
...
@@ -25,6 +25,7 @@ from ansible.inventory.expand_hosts import expand_hostname_range
from
ansible
import
errors
from
ansible
import
errors
import
shlex
import
shlex
import
re
import
re
import
ast
class
InventoryParser
(
object
):
class
InventoryParser
(
object
):
"""
"""
...
@@ -116,7 +117,7 @@ class InventoryParser(object):
...
@@ -116,7 +117,7 @@ class InventoryParser(object):
(
k
,
v
)
=
t
.
split
(
"="
)
(
k
,
v
)
=
t
.
split
(
"="
)
except
ValueError
,
e
:
except
ValueError
,
e
:
raise
errors
.
AnsibleError
(
"Invalid ini entry:
%
s -
%
s"
%
(
t
,
str
(
e
)))
raise
errors
.
AnsibleError
(
"Invalid ini entry:
%
s -
%
s"
%
(
t
,
str
(
e
)))
host
.
set_variable
(
k
,
v
)
host
.
set_variable
(
k
,
ast
.
literal_eval
(
v
)
)
self
.
groups
[
active_group_name
]
.
add_host
(
host
)
self
.
groups
[
active_group_name
]
.
add_host
(
host
)
# [southeast:children]
# [southeast:children]
...
...
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