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
f140332f
Commit
f140332f
authored
Aug 30, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible in the inventory file to have spaces in host variables
parent
8e02b165
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/inventory/ini.py
+2
-2
No files found.
lib/ansible/inventory/ini.py
View file @
f140332f
...
@@ -23,7 +23,7 @@ from ansible.inventory.group import Group
...
@@ -23,7 +23,7 @@ from ansible.inventory.group import Group
from
ansible.inventory.expand_hosts
import
detect_range
from
ansible.inventory.expand_hosts
import
detect_range
from
ansible.inventory.expand_hosts
import
expand_hostname_range
from
ansible.inventory.expand_hosts
import
expand_hostname_range
from
ansible
import
errors
from
ansible
import
errors
import
shlex
class
InventoryParser
(
object
):
class
InventoryParser
(
object
):
"""
"""
...
@@ -73,7 +73,7 @@ class InventoryParser(object):
...
@@ -73,7 +73,7 @@ class InventoryParser(object):
elif
line
.
startswith
(
"#"
)
or
line
==
''
:
elif
line
.
startswith
(
"#"
)
or
line
==
''
:
pass
pass
elif
active_group_name
:
elif
active_group_name
:
tokens
=
line
.
split
(
)
tokens
=
shlex
.
split
(
line
)
if
len
(
tokens
)
==
0
:
if
len
(
tokens
)
==
0
:
continue
continue
hostname
=
tokens
[
0
]
hostname
=
tokens
[
0
]
...
...
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