diff options
author | Michael Scherer <mscherer@users.noreply.github.com> | 2016-05-17 19:33:12 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2016-05-17 10:33:12 -0700 |
commit | c8864c32202edb9b80fee3116f0cde5d090295f3 (patch) | |
tree | a4c6584209251d7f5a36398ab535d307d6eaee89 /system | |
parent | 7e97b2131bc503893e2e3b51e21d3cfcfdfd2186 (diff) | |
download | ansible-modules-extras-c8864c32202edb9b80fee3116f0cde5d090295f3.tar.gz |
Use a python3 compatible notation for octal (#2238)
Diffstat (limited to 'system')
-rw-r--r-- | system/cronvar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/cronvar.py b/system/cronvar.py index 1068739c..64ea2cb1 100644 --- a/system/cronvar.py +++ b/system/cronvar.py @@ -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) |