git://git.onelab.eu
/
lxc-userspace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
complete migration to python3
[lxc-userspace.git]
/
scp_forward_agent.py
diff --git
a/scp_forward_agent.py
b/scp_forward_agent.py
index
f43638f
..
380a191
100755
(executable)
--- a/
scp_forward_agent.py
+++ b/
scp_forward_agent.py
@@
-1,4
+1,4
@@
-#!/usr/bin/python
+#!/usr/bin/python
3
# Run this script as:
# scp -S scp_forward_agent.py user@node
# Run this script as:
# scp -S scp_forward_agent.py user@node
@@
-9,12
+9,12
@@
import os
new_args = []
fixed = False
for arg in sys.argv[1:]:
new_args = []
fixed = False
for arg in sys.argv[1:]:
- if
('-oForwardAgent=no'==arg)
:
+ if
'-oForwardAgent=no' == arg
:
arg = '-oForwardAgent=yes'
fixed = True
new_args.append(arg)
arg = '-oForwardAgent=yes'
fixed = True
new_args.append(arg)
-if
(not fixed)
:
+if
not fixed
:
new_args = ['-oForwardAgent=yes'] + new_args
new_args = ['-oForwardAgent=yes'] + new_args
-os.execv('/usr/bin/ssh',
['/usr/bin/ssh']+
new_args)
+os.execv('/usr/bin/ssh',
['/usr/bin/ssh'] +
new_args)