mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Use 0oNNN octal syntax
This syntax is valid in Python 2.6+ and 3.x.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user