From 1cfe32f6f31918f92c095c2d6b400a82b9a16133 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sat, 14 Sep 2019 17:19:09 +0200 Subject: [PATCH] [fix] circular import --- 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 f26a19e8d..64c2d9927 100644 --- a/src/yunohost/domain.py +++ b/src/yunohost/domain.py @@ -39,7 +39,6 @@ from yunohost.regenconf import regen_conf from yunohost.utils.network import get_public_ip from yunohost.log import is_unit_operation from yunohost.hook import hook_callback -from yunohost.tools import _set_hostname logger = getActionLogger('yunohost.domain') @@ -251,6 +250,7 @@ def domain_main_domain(operation_logger, new_main_domain=None): new_main_domain -- The new domain to be set as the main domain """ + from yunohost.tools import _set_hostname # If no new domain specified, we return the current main domain if not new_main_domain: