Correct the setup module

This commit is contained in:
Michael DeHaan 2012-03-14 19:06:35 -04:00
parent 45696d5dcc
commit 36e86abc24

2
setup
View file

@ -36,7 +36,7 @@ if len(sys.argv) == 1:
argfile = sys.argv[1] argfile = sys.argv[1]
if not os.path.exists(argfile): if not os.path.exists(argfile):
sys.exit(1) 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 ]) new_options = dict([ x.split('=') for x in input_data ])
ansible_file = new_options.get('metadata', DEFAULT_ANSIBLE_SETUP) ansible_file = new_options.get('metadata', DEFAULT_ANSIBLE_SETUP)