X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fpuppetmaster%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fhas_role.rb;h=c8b537f796ea85c62d7603b6cc76653db38605e4;hb=d32b5ca2040af0e861851c5519aa5ff5b7887768;hp=ecb3cabc6935d5c6612b3ee1a245578891ea8a9c;hpb=2e2a6a3b1a42ca3351676096fdaa9f642894cdc8;p=dsa-puppet.git diff --git a/modules/puppetmaster/lib/puppet/parser/functions/has_role.rb b/modules/puppetmaster/lib/puppet/parser/functions/has_role.rb index ecb3cabc..c8b537f7 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/has_role.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/has_role.rb @@ -1,6 +1,6 @@ module Puppet::Parser::Functions newfunction(:has_role, :type => :rvalue) do |args| - role = args.shift + role = args[0] roles = lookupvar('site::roles') fqdn = lookupvar('fqdn') if not roles.include?(role)