Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfireap committed Oct 15, 2023
1 parent b8f3cbc commit e251fa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modoboa_installer/config_dict_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def is_email(user_input):
},
{
"name": "rspamd",
"if": ["antispam.enabled=true", "antispam.type=amavis"],
"if": ["antispam.enabled=true", "antispam.type=rspamd"],
"values": [
{
"option": "enabled",
Expand Down
4 changes: 2 additions & 2 deletions modoboa_installer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ def validate(value, config_entry):
def get_entry_value(entry: dict, interactive: bool, config: configparser.ConfigParser) -> string:
default_entry = entry["default"]
if type(default_entry) is type(list()):
default_value = check_if_condition(config, default_entry)
if callable(default_entry):
default_value = str(check_if_condition(config, default_entry)).lower()
elif callable(default_entry):
default_value = entry["default"]()
else:
default_value = default_entry
Expand Down

0 comments on commit e251fa6

Please sign in to comment.