mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-09 14:50:02 -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
|
@ -166,7 +166,7 @@ class ActionBase:
|
|||
|
||||
tmp_mode = None
|
||||
if self._play_context.remote_user != 'root' or self._play_context.become and self._play_context.become_user != 'root':
|
||||
tmp_mode = 0755
|
||||
tmp_mode = 0o755
|
||||
|
||||
cmd = self._connection._shell.mkdtemp(basefile, use_system_tmp, tmp_mode)
|
||||
self._display.debug("executing _low_level_execute_command to create the tmp path")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue