mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Correct the setup module
This commit is contained in:
parent
3ea9174ed7
commit
6b152c94b9
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ if len(sys.argv) == 1:
|
|||
argfile = sys.argv[1]
|
||||
if not os.path.exists(argfile):
|
||||
sys.exit(1)
|
||||
input_data = open(argfile, 'r').read()
|
||||
input_data = shlex.split(open(argfile, 'r').read())
|
||||
|
||||
new_options = dict([ x.split('=') for x in input_data ])
|
||||
ansible_file = new_options.get('metadata', DEFAULT_ANSIBLE_SETUP)
|
||||
|
|
Loading…
Reference in a new issue