Try to avoid reserved site keyword; s///g would have been a good idea
authorPeter Palfrader <peter@palfrader.org>
Fri, 13 Sep 2019 11:20:54 +0000 (13:20 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 13 Sep 2019 11:20:54 +0000 (13:20 +0200)
modules/exim/templates/manualroute.erb
modules/motd/templates/motd.erb

index 2965913..c7ce96c 100644 (file)
@@ -28,7 +28,7 @@ scope.lookupvar('deprecated::allnodeinfo').keys.sort.each do |host|
     mxmatch = mxregex.match(mx)
     if mxmatches.include?(mxmatch[1])
       route = host + ":\t\t" + host
-      if scope.lookupvar('deprecated::localinfo').has_key?(host) and scope.lookupvar('site::localinfo')[host].has_key?('mail_port') and scope.lookupvar('site::localinfo')[host]['mail_port'].to_s != ''
+      if scope.lookupvar('deprecated::localinfo').has_key?(host) and scope.lookupvar('deprecated::localinfo')[host].has_key?('mail_port') and scope.lookupvar('deprecated::localinfo')[host]['mail_port'].to_s != ''
         route += "::" + scope.lookupvar('deprecated::localinfo')[host]['mail_port'].to_s
       end
       routes << route
index e0c0b82..573ad88 100644 (file)
@@ -88,7 +88,7 @@ end
 
 vms = []
 scope.lookupvar('deprecated::allnodeinfo').keys.sort.each do |node|
-  if scope.lookupvar('deprecated::allnodeinfo')[node]['physicalHost'] and scope.lookupvar('site::allnodeinfo')[node]['physicalHost'].include?(@fqdn)
+  if scope.lookupvar('deprecated::allnodeinfo')[node]['physicalHost'] and scope.lookupvar('deprecated::allnodeinfo')[node]['physicalHost'].include?(@fqdn)
     vms << node
   end
 end