From a745f5b70e9beb021a0c1937a6500397b0a02435 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Thu, 2 Jan 2014 18:39:15 +0100 Subject: [PATCH] Ruby is not python --- modules/puppetmaster/lib/puppet/parser/functions/has_role.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/puppetmaster/lib/puppet/parser/functions/has_role.rb b/modules/puppetmaster/lib/puppet/parser/functions/has_role.rb index e5f99d507..a8f9fd3a3 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/has_role.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/has_role.rb @@ -4,7 +4,7 @@ module Puppet::Parser::Functions role = args.shift roles = lookupvar('site::roles') fqdn = lookupvar('fqdn') - return fqdn in roles[role] + return roles[role].include?(fqdn) end end end -- 2.20.1