mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Use a python3 compatible notation for octal (#2238)
This commit is contained in:
committed by
Matt Clay
parent
24a08d350a
commit
d7ac2a8499
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user