Open file in write mode

This commit is contained in:
Benjamin Bohard 2019-12-17 17:07:58 +01:00
parent 10969ab1e0
commit 62ab525219
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Risotto(Controller):
else:
releases = {'1.0.0': {'distribution': 'stable'}}
os.makedirs(os.path.join(get_config().get('source').get('root_path'), source_name))
with open(os.path.join(get_config().get('source').get('root_path'), source_name, 'releases.yml')) as release_file:
with open(os.path.join(get_config().get('source').get('root_path'), source_name, 'releases.yml'), 'w') as release_file:
yaml.dump(releases, release_file)
source_id = await risotto_context.connection.fetchval(source_upsert,
source_name,