Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
0eb538df
Commit
0eb538df
authored
Aug 27, 2015
by
Marius Gedminas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 0oNNN octal syntax
This syntax is valid in Python 2.6+ and 3.x.
parent
47b08850
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/ansible/plugins/action/__init__.py
+1
-1
lib/ansible/plugins/shell/sh.py
+1
-1
No files found.
lib/ansible/plugins/action/__init__.py
View file @
0eb538df
...
...
@@ -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
=
0
o
755
cmd
=
self
.
_connection
.
_shell
.
mkdtemp
(
basefile
,
use_system_tmp
,
tmp_mode
)
self
.
_display
.
debug
(
"executing _low_level_execute_command to create the tmp path"
)
...
...
lib/ansible/plugins/shell/sh.py
View file @
0eb538df
...
...
@@ -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
=
0
o
777
&
~
mode
cmd
=
'(umask
%
o &&
%
s)'
%
(
tmp_umask
,
cmd
)
return
cmd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment