Use actual path, not something hardcoded.
Signed-off-by: Michael Hanselmann <[email protected]>
---
lib/ssh.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/ssh.py b/lib/ssh.py
index 8fb924b..0a65f9f 100644
--- a/lib/ssh.py
+++ b/lib/ssh.py
@@ -56,7 +56,7 @@ def GetUserFiles(user, mkdir=False):
if mkdir:
utils.EnsureDirs([(ssh_dir, constants.SECURE_DIR_MODE)])
elif not os.path.isdir(ssh_dir):
- raise errors.OpExecError("path ~%s/.ssh is not a directory" % user)
+ raise errors.OpExecError("Path %s is not a directory" % ssh_dir)
return [utils.PathJoin(ssh_dir, base)
for base in ["id_dsa", "id_dsa.pub", "authorized_keys"]]
--
1.7.0.4