Skip to content

Commit f0bb9fc

Browse files
author
Gabriel Monroy
committed
Merge pull request #146 from opdemand/145-ssh-key-regex
Fixed #145 -- allow empty comment/email in SSH key regex.
2 parents b52d107 + 44a5a9e commit f0bb9fc

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)