Commit bee0e8db by Michael DeHaan

Merge pull request #266 from RWJMurphy/devel

[devel] ansible-playbook hangs if not passed --extra-vars
parents b9982fc1 abf52440
...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment