From: Alina Quereilhac Date: Thu, 13 Feb 2014 11:17:25 +0000 (+0100) Subject: Fix #26 [NEPI] [BUG] SSH identity doesn't expand '~' X-Git-Tag: nepi-3.1.0~121 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1c2e43386bf6eef4f6f51d482b72e6dc50300150;p=nepi.git Fix #26 [NEPI] [BUG] SSH identity doesn't expand '~' --- diff --git a/src/nepi/util/sshfuncs.py b/src/nepi/util/sshfuncs.py index 28539419..1df46b99 100644 --- a/src/nepi/util/sshfuncs.py +++ b/src/nepi/util/sshfuncs.py @@ -266,6 +266,7 @@ def rexec(command, host, user, args.append('-p%d' % port) if identity: + identity = os.path.expanduser(identity) args.extend(('-i', identity)) if tty: @@ -398,6 +399,7 @@ def rcopy(source, dest, args.append('-r') if identity: + identity = os.path.expanduser(identity) args.extend(('-i', identity)) if server_key: