From ef6364b5427ac0868756f267b22f7d821c78bd80 Mon Sep 17 00:00:00 2001 From: kload Date: Mon, 3 Mar 2014 13:50:46 +0100 Subject: [PATCH] Change key formatting to return --- yunohost_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yunohost_tools.py b/yunohost_tools.py index 065b1681..320d6472 100644 --- a/yunohost_tools.py +++ b/yunohost_tools.py @@ -114,7 +114,7 @@ def tools_maindomain(old_domain=None, new_domain=None, dyndns=False): old_domain = f.readline().rstrip() if not new_domain: - return { 'Current main domain': old_domain } + return { 'current_main_domain': old_domain } validate(r'^([a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)(\.[a-zA-Z0-9]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)*(\.[a-zA-Z]{1}([a-zA-Z0-9\-]*[a-zA-Z0-9])*)$', old_domain)