mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
stringify the minions 'id:' declaration
This commit is contained in:
parent
3a51f9788c
commit
99ba9b9c8d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user