Sync helpers.

This commit is contained in:
Adam Gandelman
2013-08-16 12:45:56 -07:00
parent 0d921ccc41
commit ae4c96c229

View File

@@ -247,8 +247,12 @@ class OSConfigRenderer(object):
if config_file not in self.templates:
log('Config not registered: %s' % config_file, level=ERROR)
raise OSConfigException
_out = self.render(config_file)
with open(config_file, 'wb') as out:
out.write(self.render(config_file))
out.write(_out)
log('Wrote template %s.' % config_file, level=INFO)
def write_all(self):