From d50104ce10d7709c9c21f475eb6241136f937ad8 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 10 Oct 2010 11:00:18 +0200 Subject: Fix functions declaration and filenames. --- lib/puppet/parser/functions/debian_release.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'lib/puppet/parser/functions/debian_release.rb') diff --git a/lib/puppet/parser/functions/debian_release.rb b/lib/puppet/parser/functions/debian_release.rb index ef30484..ec46601 100644 --- a/lib/puppet/parser/functions/debian_release.rb +++ b/lib/puppet/parser/functions/debian_release.rb @@ -1,11 +1,12 @@ module Puppet::Parser::Functions newfunction(:debian_release, :type => :rvalue) do |args| - case #{args[0]} { - etch: { 'oldstable' } - lenny: { 'stable' } - squeeze: { 'testing' } - sid: { 'unstable' } - experimental: { 'experimental' } - } + result = case #{args[0]} + when 'etch' then 'oldstable' + when 'lenny' then 'stable' + when 'squeeze' then 'testing' + when 'sid' then 'unstable' + when 'experimental' then 'experimental' + end + return result end end -- cgit v1.2.3