mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
fix exceptions in yaml loading
This commit is contained in:
parent
a97453df4d
commit
57081f4032
@ -35,7 +35,7 @@ class Map(object):
|
||||
return {}
|
||||
try:
|
||||
with open(self.opts['map'], 'rb') as fp_:
|
||||
map_ = yaml.loads(fb_.read())
|
||||
map_ = yaml.load(fp_.read())
|
||||
except Exception:
|
||||
return {}
|
||||
if 'include' in map_:
|
||||
|
Loading…
Reference in New Issue
Block a user