Skip to content

Commit 3757f69

Browse files
committed
Add message unexpected ssh registration exception
1 parent b325965 commit 3757f69

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = ibm-ray-config
3-
version = 1.0.0b27
3+
version = 1.0.0b28
44
author = Omer J Cohen
55
author_email = [email protected]
66
description = Interactive tool generating ray configuration for IBM platforms

src/ibm_ray_config/modules/gen2/ssh_key.py

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def register_ssh_key(ibm_vpc_client, config, auto=False):
9191
else:
9292
if "Key with fingerprint already exists" in e.message:
9393
print(color_msg("Can't register an SSH key with the same fingerprint",Color.RED))
94+
else:
95+
print(color_msg("Failed to register SSH keys with error:\n"+e.message,Color.RED))
9496
exit(1) # can't continue the configuration process without a valid ssh key
9597

9698
print(color_msg(f"new SSH key '{keyname}' been registered in vpc\n", Color.LIGHTGREEN))

0 commit comments

Comments
 (0)