Skip to content

Commit

Permalink
Fix file writing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Jung committed Jan 12, 2021
1 parent 24044f1 commit af2d2db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion retemplate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def write_file(self, content):
with open(self.target, 'w') as fh:
fh.write(content)
shutil.chown(self.target, user=self.settings['owner'], group=self.settings['group'])
subprocess.run([ 'chmod', settings['chmod'], self.target ])
subprocess.run([ 'chmod', self.settings['chmod'], self.target ])
return True
except IOError:
logging.error('Cannot write target file {}'.format(self.target))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='retemplate',
version='0.0.9',
version='0.0.10',
description="A module to execute a Jinja template on a schedule, supporting several backends for value storage",
url='https://github.com/ryanjjung/retemplate',
author='Ryan Jung',
Expand Down

0 comments on commit af2d2db

Please sign in to comment.