From 2ac73a9322463efe2414d6f1ca127fc752bc14f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Wed, 22 Feb 2017 18:50:51 +0100 Subject: [PATCH] fix non-nated cases, refs #20581 --- tests/test_dns_records.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_dns_records.py b/tests/test_dns_records.py index 066069a2..adddb65a 100755 --- a/tests/test_dns_records.py +++ b/tests/test_dns_records.py @@ -53,7 +53,9 @@ if os.path.isfile('../utils.py'): es_utils = imp.load_source('es_utils', '../utils.py') conf = es_utils.load_conf() - ip = conf.get('NETWORK_IP_NAT') or conf.get('NETWORK_IP') + ip = conf.get('NETWORK_IP_NAT') + if not ip or ip == '0': + ip = conf.get('NETWORK_IP') conf_resolvers_keys = ( 'NETWORK_DNS1', -- GitLab