We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2951f9 commit bbda0a6Copy full SHA for bbda0a6
1 file changed
client/deis.py
@@ -1300,9 +1300,14 @@ def parse_key(path):
1300
print('Found the following SSH public keys:')
1301
for i, key_ in enumerate(pubkeys_list):
1302
print("{}) {} {}".format(i + 1, key_.name, key_.comment))
1303
+ print("0) Enter path to pubfile (or use keys:add <key_path>) ")
1304
inp = raw_input('Which would you like to use with Deis? ')
1305
try:
- selected_key = pubkeys_list[int(inp) - 1]
1306
+ if int(inp) != 0:
1307
+ selected_key = pubkeys_list[int(inp) - 1]
1308
+ else:
1309
+ selected_key_path = raw_input('Enter the path to the pubkey file: ')
1310
+ selected_key = parse_key(os.path.expanduser(selected_key_path))
1311
except:
1312
print('Aborting')
1313
return
0 commit comments