From 2c7da66570999dcd21f11f976dc6ec27d820f45c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 4 Oct 2024 19:28:06 -0700 Subject: Use @ when accessing variables in templates Access without the @ symbol is the older method and is discouraged. --- modules/bind/templates/named_master.conf | 4 ++-- modules/bind/templates/named_slave.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/bind') diff --git a/modules/bind/templates/named_master.conf b/modules/bind/templates/named_master.conf index 30b3418f..09f6d124 100644 --- a/modules/bind/templates/named_master.conf +++ b/modules/bind/templates/named_master.conf @@ -8,9 +8,9 @@ zone "mageia.org" IN { for tld in managed_tlds %> -zone "mageia.<%= tld %>" IN { +zone "mageia.<%= @tld %>" IN { type master; - file "master/mageia.<%= tld %>.zone"; + file "master/mageia.<%= @tld %>.zone"; allow-update { none; }; }; diff --git a/modules/bind/templates/named_slave.conf b/modules/bind/templates/named_slave.conf index b59db37f..846017ff 100644 --- a/modules/bind/templates/named_slave.conf +++ b/modules/bind/templates/named_slave.conf @@ -8,7 +8,7 @@ zone "mageia.org" IN { for tld in managed_tlds %> -zone "mageia.<%= tld %>" IN { +zone "mageia.<%= @tld %>" IN { type master; file "master/mageia.<= tld %>"; allow-update { 212.85.158.151; }; -- cgit v1.2.1