From 55b0140edd45b637becfbeeaedd6728329f8588b Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 31 Jul 2023 19:11:01 +0200 Subject: [PATCH] better tls zone calculation --- src/risotto/machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/risotto/machine.py b/src/risotto/machine.py index 4e915f9..7876ebd 100644 --- a/src/risotto/machine.py +++ b/src/risotto/machine.py @@ -296,7 +296,7 @@ class Loader: zones_name = server_datas['zones_name'] values = [f'{server_name}.{self.zones[zone_name]["domain_name"]}' for zone_name in zones_name] if server_datas['applicationservice'] == 'tls': - true_host_name = f'{server_name}.{self.zones[list(self.zones)[0]]["domain_name"]}' + true_host_name = f'{server_name}.{self.zones[server_datas["zones_name"][0]]["domain_name"]}' else: true_host_name = values[0] cfg['risotto_globals'][true_host_name] = {'global:host_name': host_name,