Skip to content

Commit

Permalink
Merge pull request #497 from BiBiServ/fixes
Browse files Browse the repository at this point in the history
Fixes error when no userRole is defined
  • Loading branch information
XaverStiensmeier authored Apr 30, 2024
2 parents fa2bb2e + 3367d55 commit 7c3bb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bibigrid/core/utility/ansible_configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit 7c3bb78

Please sign in to comment.