Skip to content

Commit 44a5a9e

Browse files
committed
Fixed #145 -- allow empty comment/email in SSH key regex.
1 parent e4110c3 commit 44a5a9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/deis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ def keys_add(self, args):
981981
return
982982
with open(path) as f:
983983
data = f.read()
984-
match = re.match(r'^(ssh-...) ([^ ]+) (.+)', data)
984+
match = re.match(r'^(ssh-...) ([^ ]+) ?(.*)', data)
985985
if not match:
986986
print('Could not parse public key material')
987987
return

0 commit comments

Comments
 (0)