mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #8657 from cvrebert/patch-2
map -> map_, to avoid shadowing built-in map() func
This commit is contained in:
commit
38a229503c
@ -1074,10 +1074,10 @@ class Map(Cloud):
|
||||
temp_ = Template(fp.read())
|
||||
# render as yaml
|
||||
yaml_str_ = temp_.render()
|
||||
map = yaml.safe_load(yaml_str_)
|
||||
map_ = yaml.safe_load(yaml_str_)
|
||||
except MakoException:
|
||||
map = yaml.safe_load(fp.read())
|
||||
return map
|
||||
map_ = yaml.safe_load(fp.read())
|
||||
return map_
|
||||
|
||||
def read(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user