summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygerrit/ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygerrit/ssh.py b/pygerrit/ssh.py
index 97e712d..c235999 100644
--- a/pygerrit/ssh.py
+++ b/pygerrit/ssh.py
@@ -90,7 +90,7 @@ class GerritSSHClient(SSHClient):
raise GerritError("Missing configuration data in %s" % configfile)
key_filename = None
if 'identityfile' in data:
- key_filename = abspath(expanduser(data['identityfile']))
+ key_filename = abspath(expanduser(data['identityfile'][0]))
if not isfile(key_filename):
raise GerritError("Identity file '%s' does not exist" %
key_filename)