summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorMichael Scherer <mscherer@users.noreply.github.com>2016-05-17 19:33:12 +0200
committerToshio Kuratomi <a.badger@gmail.com>2016-05-17 10:33:12 -0700
commitc8864c32202edb9b80fee3116f0cde5d090295f3 (patch)
treea4c6584209251d7f5a36398ab535d307d6eaee89 /system
parent7e97b2131bc503893e2e3b51e21d3cfcfdfd2186 (diff)
downloadansible-modules-extras-c8864c32202edb9b80fee3116f0cde5d090295f3.tar.gz
Use a python3 compatible notation for octal (#2238)
Diffstat (limited to 'system')
-rw-r--r--system/cronvar.py2
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)