Open file in write mode
This commit is contained in:
parent
10969ab1e0
commit
62ab525219
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue