From 6bd56558303378d5c11db910773c141b456ee376 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 23 Sep 2020 22:11:04 +0200 Subject: [PATCH] Return main domain directly, not its index Co-authored-by: ljf (zamentur) --- src/yunohost/domain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/domain.py b/src/yunohost/domain.py index f76ab2bb0..2e46e7ab8 100644 --- a/src/yunohost/domain.py +++ b/src/yunohost/domain.py @@ -64,7 +64,7 @@ def domain_list(exclude_subdomains=False): result_list.sort() return { 'domains': result_list, - 'default': result_list.index(_get_maindomain()) + 'default': _get_maindomain() }