From cbb4a8dd1f173940207ede65c85aed0640565bee Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Tue, 29 Oct 2024 10:26:27 +0100 Subject: [PATCH] Fix issue with missing NETHVOICE_USER_PORTAL_PASSWORD in configure-module script --- imageroot/actions/restore-module/70configure_module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageroot/actions/restore-module/70configure_module b/imageroot/actions/restore-module/70configure_module index 7fb676d3f..f8f7dbafe 100755 --- a/imageroot/actions/restore-module/70configure_module +++ b/imageroot/actions/restore-module/70configure_module @@ -24,7 +24,7 @@ response = agent.tasks.run(agent_id=os.environ['AGENT_ID'], action='configure-mo "timezone": old_envs["TIMEZONE"], "user_domain": old_envs["USER_DOMAIN"], "nethvoice_adm_username": old_envs.get("NETHVOICE_USER_PORTAL_USERNAME", ''), - "nethvoice_adm_password": agent.read_envfile("passwords.env")['NETHVOICE_USER_PORTAL_PASSWORD'], + "nethvoice_adm_password": agent.read_envfile("passwords.env").get('NETHVOICE_USER_PORTAL_PASSWORD',""), }) agent.assert_exp(response['exit_code'] == 0)