From 3367d55b32426417b57019cf5a0f8b614a931e48 Mon Sep 17 00:00:00 2001 From: XaverStiensmeier Date: Tue, 30 Apr 2024 13:11:47 +0200 Subject: [PATCH] userRoles crashes if no role set --- bibigrid/core/utility/ansible_configurator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibigrid/core/utility/ansible_configurator.py b/bibigrid/core/utility/ansible_configurator.py index 526b80de..2d44778d 100644 --- a/bibigrid/core/utility/ansible_configurator.py +++ b/bibigrid/core/utility/ansible_configurator.py @@ -379,7 +379,7 @@ def configure_ansible_yaml(providers, configurations, cluster_id, log): delete_old_vars(log) log.info("Writing ansible files...") alias = configurations[0].get("aliasDumper", False) - user_roles = configurations[0].get("userRoles") + user_roles = configurations[0].get("userRoles", []) default_user = providers[0].cloud_specification["auth"].get("username", configurations[0].get("sshUser", "Ubuntu")) add_wireguard_peers(configurations) for path, generated_yaml in [