mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 09:24:01 -07:00
shlex.split() tries to read from stdin if passed None
This commit is contained in:
parent
b9982fc17b
commit
abf524405a
1 changed files with 6 additions and 5 deletions
|
@ -267,6 +267,7 @@ def parse_yaml_from_file(path):
|
|||
def parse_kv(args):
|
||||
''' convert a string of key/value items to a dict '''
|
||||
options = {}
|
||||
if not args is None:
|
||||
vargs = shlex.split(args, posix=True)
|
||||
for x in vargs:
|
||||
if x.find("=") != -1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue