Commit 898a6d45 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Adjust message in case ~/.ssh is no directory

Use actual path, not something hardcoded.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarGuido Trotter <>
parent 6e04dc39
......@@ -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", "", "authorized_keys"]]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment