stringify the minions 'id:' declaration

This commit is contained in:
Kent Tenney 2011-12-01 08:40:48 -06:00
parent 3a51f9788c
commit 99ba9b9c8d

View File

@ -31,6 +31,10 @@ def load_config(opts, path, env_var):
if conf_opts == None:
# The config file is empty and the yaml.load returned None
conf_opts = {}
else:
# allow using numeric ids: convert int to string
if 'id' in conf_opts:
conf_opts['id'] = str(conf_opts['id'])
opts.update(conf_opts)
opts['conf_file'] = path
except Exception, e: