Update commands.py

Whoops! write_file was writing filename to the file instead of the contents.
This commit is contained in:
djazz 2017-12-01 13:08:35 +01:00 committed by GitHub
parent 2ad1f46e60
commit 3c8b372945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -386,7 +386,7 @@ class CommandsMixin(object):
mode = params.get('mode', 'w')
with open(file, mode) as f:
f.write(params['file'])
f.write(params['content'])
def write_json(self, params):
"""Write data into a json file."""