write the master file when calling apply

This commit is contained in:
Thomas S Hatch 2012-10-29 23:50:50 -06:00
parent 4b0d846fc7
commit dc7acd9cb4

View File

@ -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))