mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-03 14:59:09 -07:00
Use a python3 compatible notation for octal (#2238)
This commit is contained in:
parent
24a08d350a
commit
d7ac2a8499
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue