mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
remove unused variable (pyflakes)
This commit is contained in:
parent
061394fff7
commit
eb77ca80df
1 changed files with 0 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue