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
eb77ca80
Commit
eb77ca80
authored
Nov 02, 2013
by
Michael Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused variable (pyflakes)
parent
061394ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
library/utilities/accelerate
+0
-2
No files found.
library/utilities/accelerate
View file @
eb77ca80
...
@@ -360,13 +360,11 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
...
@@ -360,13 +360,11 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
return
dict
(
failed
=
True
,
msg
=
'internal error: out_path is required'
)
return
dict
(
failed
=
True
,
msg
=
'internal error: out_path is required'
)
final_path
=
None
final_path
=
None
final_user
=
None
if
'user'
in
data
and
data
.
get
(
'user'
)
!=
getpass
.
getuser
():
if
'user'
in
data
and
data
.
get
(
'user'
)
!=
getpass
.
getuser
():
vv
(
"the target user doesn't match this user, we'll move the file into place via sudo"
)
vv
(
"the target user doesn't match this user, we'll move the file into place via sudo"
)
(
fd
,
out_path
)
=
tempfile
.
mkstemp
(
prefix
=
'ansible.'
,
dir
=
os
.
path
.
expanduser
(
'~/.ansible/tmp/'
))
(
fd
,
out_path
)
=
tempfile
.
mkstemp
(
prefix
=
'ansible.'
,
dir
=
os
.
path
.
expanduser
(
'~/.ansible/tmp/'
))
out_fd
=
os
.
fdopen
(
fd
,
'w'
,
0
)
out_fd
=
os
.
fdopen
(
fd
,
'w'
,
0
)
final_path
=
data
[
'out_path'
]
final_path
=
data
[
'out_path'
]
final_user
=
data
[
'user'
]
else
:
else
:
out_path
=
data
[
'out_path'
]
out_path
=
data
[
'out_path'
]
out_fd
=
open
(
out_path
,
'w'
)
out_fd
=
open
(
out_path
,
'w'
)
...
...
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