From 39a881f4bec2b3405e23b897065021b0b00520f8 Mon Sep 17 00:00:00 2001 From: XaverStiensmeier <36056823+XaverStiensmeier@users.noreply.github.com> Date: Sun, 26 Nov 2023 22:08:00 +0100 Subject: [PATCH] Hotfix: Empty sshPublicKeyFiles list crashed finding master ip for ide (#452) * fixed rule setting for security groups * fixed multiple network is now list causing error bugs. * trying to figure out why route applying only works once. * Added more echo's for better debugging. * fixed remaining "subnet list gets handled as a single subnet" bug and finalized multiple routes handling. * fixed None bug where [] is expected when no sshPublicKeyFile is given. --- bibigrid/core/utility/handler/cluster_ssh_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibigrid/core/utility/handler/cluster_ssh_handler.py b/bibigrid/core/utility/handler/cluster_ssh_handler.py index 7ffd7ea5..6a5ffdb8 100644 --- a/bibigrid/core/utility/handler/cluster_ssh_handler.py +++ b/bibigrid/core/utility/handler/cluster_ssh_handler.py @@ -23,7 +23,7 @@ def get_ssh_connection_info(cluster_id, master_provider, master_configuration, l else: master_ip = list_clusters.get_master_access_ip(cluster_id, master_provider, log) ssh_user = master_configuration.get("sshUser") - public_keys = master_configuration.get("sshPublicKeyFiles") + public_keys = master_configuration.get("sshPublicKeyFiles") or [] used_private_key = None # first check configuration then if not found take the temporary key