From 375b7d53b1fca626abdba882799692aa247ab1e8 Mon Sep 17 00:00:00 2001 From: Romuald du Song Date: Thu, 14 Feb 2019 23:00:52 +0100 Subject: [PATCH] fix enum syntax --- src/yunohost/settings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/yunohost/settings.py b/src/yunohost/settings.py index c3d4591b0..1d60c3a6a 100644 --- a/src/yunohost/settings.py +++ b/src/yunohost/settings.py @@ -39,8 +39,10 @@ DEFAULTS = OrderedDict([ ("security.password.admin.strength", {"type": "int", "default": 1}), ("security.password.user.strength", {"type": "int", "default": 1}), ("service.ssh.allow_deprecated_dsa_hostkey", {"type": "bool", "default": False}), - ("service.ssh.ciphers.compatibility", {"type": "enum", "choices": "intermediate", "modern"}), - ("security.ciphers.compatibility", {"type": "enum", "choices": "intermediate", "modern"}), + ("service.ssh.ciphers.compatibility", {"type": "enum", "default": "modern", + "choices": ["intermediate", "modern"]}), + ("security.ciphers.compatibility", {"type": "enum", "default": "intermediate", + "choices": ["intermediate", "modern"]}), ])