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
bee0e8db
Commit
bee0e8db
authored
Apr 26, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #266 from RWJMurphy/devel
[devel] ansible-playbook hangs if not passed --extra-vars
parents
b9982fc1
abf52440
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lib/ansible/utils.py
+6
-5
No files found.
lib/ansible/utils.py
View file @
bee0e8db
...
@@ -267,11 +267,12 @@ def parse_yaml_from_file(path):
...
@@ -267,11 +267,12 @@ def parse_yaml_from_file(path):
def
parse_kv
(
args
):
def
parse_kv
(
args
):
''' convert a string of key/value items to a dict '''
''' convert a string of key/value items to a dict '''
options
=
{}
options
=
{}
vargs
=
shlex
.
split
(
args
,
posix
=
True
)
if
not
args
is
None
:
for
x
in
vargs
:
vargs
=
shlex
.
split
(
args
,
posix
=
True
)
if
x
.
find
(
"="
)
!=
-
1
:
for
x
in
vargs
:
k
,
v
=
x
.
split
(
"="
)
if
x
.
find
(
"="
)
!=
-
1
:
options
[
k
]
=
v
k
,
v
=
x
.
split
(
"="
)
options
[
k
]
=
v
return
options
return
options
class
SortedOptParser
(
optparse
.
OptionParser
):
class
SortedOptParser
(
optparse
.
OptionParser
):
...
...
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