From c8ae06b581cbf1a19789500ae15d07a863724272 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 11 Apr 2022 20:58:35 +0200 Subject: system-option: T4333: migrate to new vyos_defined Jinja2 test --- data/templates/system/curlrc.tmpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'data/templates/system/curlrc.tmpl') diff --git a/data/templates/system/curlrc.tmpl b/data/templates/system/curlrc.tmpl index 3e5ce801c..be4efe8ba 100644 --- a/data/templates/system/curlrc.tmpl +++ b/data/templates/system/curlrc.tmpl @@ -1,8 +1,6 @@ -{% if http_client is defined %} -{% if http_client.source_interface is defined %} +{% if http_client.source_interface is vyos_defined %} --interface "{{ http_client.source_interface }}" -{% endif %} -{% if http_client.source_address is defined %} +{% endif %} +{% if http_client.source_address is vyos_defined %} --interface "{{ http_client.source_address }}" -{% endif %} {% endif %} -- cgit v1.2.3