]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
we are passed a string
authorStephen Gran <steve@lobefin.net>
Thu, 2 Jan 2014 19:55:19 +0000 (19:55 +0000)
committerStephen Gran <steve@lobefin.net>
Thu, 2 Jan 2014 19:55:19 +0000 (19:55 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/puppetmaster/lib/puppet/parser/functions/has_role.rb

index ecb3cabc6935d5c6612b3ee1a245578891ea8a9c..758f500022f0b2e57ffaea58db85dbf369123f71 100644 (file)
@@ -1,6 +1,5 @@
 module Puppet::Parser::Functions
-  newfunction(:has_role, :type => :rvalue) do |args|
-      role = args.shift
+  newfunction(:has_role, :type => :rvalue) do |role|
       roles = lookupvar('site::roles')
       fqdn = lookupvar('fqdn')
       if not roles.include?(role)