mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Use 0oNNN octal syntax
This syntax is valid in Python 2.6+ and 3.x.
This commit is contained in:
parent
47b088504d
commit
0eb538df03
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ class ShellModule(object):
|
|||
# change the umask in a subshell to achieve the desired mode
|
||||
# also for directories created with `mkdir -p`
|
||||
if mode:
|
||||
tmp_umask = 0777 & ~mode
|
||||
tmp_umask = 0o777 & ~mode
|
||||
cmd = '(umask %o && %s)' % (tmp_umask, cmd)
|
||||
|
||||
return cmd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue