Use a python3 compatible notation for octal (#2238)

This commit is contained in:
Michael Scherer 2016-05-17 19:33:12 +02:00 committed by Matt Clay
parent 24a08d350a
commit d7ac2a8499
3 changed files with 4 additions and 4 deletions

View file

@ -363,7 +363,7 @@ def main():
res_args = dict()
# Ensure all files generated are only writable by the owning user. Primarily relevant for the cron_file option.
os.umask(022)
os.umask(int('022',8))
cronvar = CronVar(module, user, cron_file)
module.debug('cronvar instantiated - name: "%s"' % name)