mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Minor style fix, update test to match quote fix patch
This commit is contained in:
parent
ec6f488d1f
commit
6db87a5018
2 changed files with 8 additions and 4 deletions
|
@ -274,5 +274,9 @@ def parse_kv(args, unquote=True):
|
||||||
for x in args:
|
for x in args:
|
||||||
if x.find("=") != -1:
|
if x.find("=") != -1:
|
||||||
k, v = x.split("=")
|
k, v = x.split("=")
|
||||||
options[k]=unquote_string(v) if unquote else v
|
if unquote:
|
||||||
|
options[k]=unquote_string(v)
|
||||||
|
else:
|
||||||
|
v
|
||||||
return options
|
return options
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@
|
||||||
[
|
[
|
||||||
"127.0.0.1",
|
"127.0.0.1",
|
||||||
{
|
{
|
||||||
"cmd": "echo this should fire once ",
|
"cmd": "echo 'this should fire once' ",
|
||||||
"rc": 0,
|
"rc": 0,
|
||||||
"stderr": "",
|
"stderr": "",
|
||||||
"stdout": "this should fire once"
|
"stdout": "this should fire once"
|
||||||
|
@ -289,7 +289,7 @@
|
||||||
[
|
[
|
||||||
"127.0.0.1",
|
"127.0.0.1",
|
||||||
{
|
{
|
||||||
"cmd": "echo this should fire once ",
|
"cmd": "echo 'this should fire once' ",
|
||||||
"rc": 0,
|
"rc": 0,
|
||||||
"stderr": "",
|
"stderr": "",
|
||||||
"stdout": "this should fire once"
|
"stdout": "this should fire once"
|
||||||
|
@ -308,7 +308,7 @@
|
||||||
[
|
[
|
||||||
"127.0.0.1",
|
"127.0.0.1",
|
||||||
{
|
{
|
||||||
"cmd": "echo this should fire once also ",
|
"cmd": "echo 'this should fire once also' ",
|
||||||
"rc": 0,
|
"rc": 0,
|
||||||
"stderr": "",
|
"stderr": "",
|
||||||
"stdout": "this should fire once also"
|
"stdout": "this should fire once also"
|
||||||
|
|
Loading…
Reference in a new issue