mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #34966 from whiteinge/minion-swarm-opts-dict
Ensure 'data' remains a dictionary if conf file is empty or missing
This commit is contained in:
commit
16ee70867a
@ -267,7 +267,7 @@ class MinionSwarm(Swarm):
|
||||
if self.opts['config_dir']:
|
||||
spath = os.path.join(self.opts['config_dir'], 'minion')
|
||||
with open(spath) as conf:
|
||||
data = yaml.load(conf)
|
||||
data = yaml.load(conf) or {}
|
||||
minion_id = '{0}-{1}'.format(
|
||||
self.opts['name'],
|
||||
str(idx).zfill(self.zfill)
|
||||
|
Loading…
Reference in New Issue
Block a user