From 4566d52e71020bf2526720255e2b6381ce580b17 Mon Sep 17 00:00:00 2001 From: GeorgianaElena Date: Mon, 6 Dec 2021 17:15:08 +0200 Subject: [PATCH] Consider the case when there is no staff id list --- deployer/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deployer/utils.py b/deployer/utils.py index 3bc8e4402..a126f2b5f 100644 --- a/deployer/utils.py +++ b/deployer/utils.py @@ -66,7 +66,10 @@ def replace_staff_placeholder(user_list, staff): if staff_placeholder in user_list: custom_users.remove(staff_placeholder) - return custom_users + staff_ids + custom_users = custom_users + staff_ids + + # If no staff placeholder was provided, then return the original list of users + return custom_users def update_authenticator_config(config, template): """Prepare a hub's configuration file for deployment."""