mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 08:01:24 -07:00
hacking/test-module: Deal with move of parse_kv
This commit is contained in:
parent
ea6ec3bf2c
commit
5466ff8907
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ import traceback
|
||||||
import optparse
|
import optparse
|
||||||
import ansible.utils as utils
|
import ansible.utils as utils
|
||||||
from ansible.parsing.utils.jsonify import jsonify
|
from ansible.parsing.utils.jsonify import jsonify
|
||||||
|
from ansible.parsing.splitter import parse_kv
|
||||||
import ansible.module_common as module_common
|
import ansible.module_common as module_common
|
||||||
import ansible.constants as C
|
import ansible.constants as C
|
||||||
|
|
||||||
|
@ -75,7 +76,7 @@ def write_argsfile(argstring, json=False):
|
||||||
argspath = os.path.expanduser("~/.ansible_test_module_arguments")
|
argspath = os.path.expanduser("~/.ansible_test_module_arguments")
|
||||||
argsfile = open(argspath, 'w')
|
argsfile = open(argspath, 'w')
|
||||||
if json:
|
if json:
|
||||||
args = utils.parse_kv(argstring)
|
args = parse_kv(argstring)
|
||||||
argstring = jsonify(args)
|
argstring = jsonify(args)
|
||||||
argsfile.write(argstring)
|
argsfile.write(argstring)
|
||||||
argsfile.close()
|
argsfile.close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue