From 431e24cff3f84923feafe99305f440af35dcad73 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Tue, 6 Feb 2024 08:12:17 +0100 Subject: [PATCH] Fix condition to check for 'addusers' key in kd dictionary --- imageroot/actions/get-configuration/20read | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imageroot/actions/get-configuration/20read b/imageroot/actions/get-configuration/20read index 9e89918..5eeadb3 100755 --- a/imageroot/actions/get-configuration/20read +++ b/imageroot/actions/get-configuration/20read @@ -39,7 +39,7 @@ for key in agent.list_service_providers(rdb,'imap','tcp'): mail = key['module_id'] get_retval = agent.tasks.run(f"module/{mail}",'list-domains') for kd in get_retval['output']: - if 'addusers' in kd: + if 'addusers' in kd and kd.get('addusers') == True: obj = { "name": key['module_id'], "label": f"{kd['domain']} ({key['mail_hostname']})",