mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
write the master file when calling apply
This commit is contained in:
parent
4b0d846fc7
commit
dc7acd9cb4
@ -35,4 +35,5 @@ def apply(key, value):
|
||||
path = os.path.join(path, 'master')
|
||||
data = values()
|
||||
data[key] = value
|
||||
yaml.dump(data, default_flow_style=False)
|
||||
with open(path, 'w+') as fp_ :
|
||||
fp_.write(yaml.dump(data, default_flow_style=False))
|
||||
|
Loading…
Reference in New Issue
Block a user