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
28556845
Commit
28556845
authored
Nov 19, 2013
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4780 from mscherer/fix_accelerate_various
Fix various warning on accelerate module, found by pyflakes
parents
8277bf29
ea6567db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
library/utilities/accelerate
+2
-4
No files found.
library/utilities/accelerate
View file @
28556845
...
...
@@ -72,9 +72,9 @@ EXAMPLES = '''
import
base64
import
getpass
import
json
import
os
import
os.path
import
shutil
import
signal
import
socket
import
struct
...
...
@@ -250,7 +250,7 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
vv
(
"bad decrypt, skipping..."
)
data2
=
json
.
dumps
(
dict
(
rc
=
1
))
data2
=
self
.
server
.
key
.
Encrypt
(
data2
)
se
nd_data
(
client
,
data2
)
se
lf
.
send_data
(
data2
)
return
vvvv
(
"loading json from the data"
)
...
...
@@ -360,13 +360,11 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):
return
dict
(
failed
=
True
,
msg
=
'internal error: out_path is required'
)
final_path
=
None
final_user
=
None
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"
)
(
fd
,
out_path
)
=
tempfile
.
mkstemp
(
prefix
=
'ansible.'
,
dir
=
os
.
path
.
expanduser
(
'~/.ansible/tmp/'
))
out_fd
=
os
.
fdopen
(
fd
,
'w'
,
0
)
final_path
=
data
[
'out_path'
]
final_user
=
data
[
'user'
]
else
:
out_path
=
data
[
'out_path'
]
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