Skip to content

Commit

Permalink
manual_configuration must be compared only if True
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Apr 12, 2024
1 parent 4fee229 commit 2622022
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ for key in agent.list_service_providers(rdb,'imap','tcp'):
"node_name": node_name,
"host": key['host']
}
manual_configuration = False if key['host'] == smtp['host'] else True
if manual_configuration == True:
# no need to check the rest of the list if manual_configuration == False
manual_configuration = False if key['host'] == smtp['host'] else True
modules.append(obj)
smtp.update({"mail_server":modules, "manual_configuration": manual_configuration})

Expand Down

0 comments on commit 2622022

Please sign in to comment.