git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
display the ssh command when debug is turned on on sshfuncs.logger
[nepi.git]
/
src
/
nepi
/
util
/
sshfuncs.py
diff --git
a/src/nepi/util/sshfuncs.py
b/src/nepi/util/sshfuncs.py
index
a01bded
..
176afd3
100644
(file)
--- a/
src/nepi/util/sshfuncs.py
+++ b/
src/nepi/util/sshfuncs.py
@@
-693,6
+693,9
@@
def _retry_rexec(args,
blocking = True):
for x in xrange(retry):
blocking = True):
for x in xrange(retry):
+ # display command actually invoked when debug is turned on
+ message = " ".join( [ "'{}'".format(arg) for arg in args ] )
+ log("sshfuncs: invoking {}".format(message), logging.DEBUG)
# connects to the remote host and starts a remote connection
proc = subprocess.Popen(args,
env = env,
# connects to the remote host and starts a remote connection
proc = subprocess.Popen(args,
env = env,