From: Martin Zobel-Helas Date: Sun, 19 Mar 2017 12:46:35 +0000 (+0100) Subject: fix syntax in modules/named/templates/named.conf.puppet-shared-keys.erb X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9c8ae03b583c01e47b4b5bbf091efcd4302fc1e7;p=mirror%2Fdsa-puppet.git fix syntax in modules/named/templates/named.conf.puppet-shared-keys.erb Signed-off-by: Martin Zobel-Helas --- diff --git a/modules/named/templates/named.conf.puppet-shared-keys.erb b/modules/named/templates/named.conf.puppet-shared-keys.erb index 14fc36403..7cbc0041b 100644 --- a/modules/named/templates/named.conf.puppet-shared-keys.erb +++ b/modules/named/templates/named.conf.puppet-shared-keys.erb @@ -14,10 +14,10 @@ pairs = [ lines = [] pairs.each do |pair| - next unless pair.include?(fqdn) + next unless pair.include?(@fqdn) pair.sort! keyname = "tsig-#{pair.join('-')}" - pair.delete(fqdn) + pair.delete(@fqdn) other = pair[0] key = scope.function_hkdf(['/etc/puppet/secret', "puppet-key-#{keyname}"])