From b4e24ecc0699687adec30bd38d78b34423eda1a1 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 10 Oct 2010 12:05:26 +0200 Subject: Fix functions return values. --- lib/puppet/parser/functions/debian_nextrelease.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/parser/functions/debian_nextrelease.rb') diff --git a/lib/puppet/parser/functions/debian_nextrelease.rb b/lib/puppet/parser/functions/debian_nextrelease.rb index 62e3234..76c3e0d 100644 --- a/lib/puppet/parser/functions/debian_nextrelease.rb +++ b/lib/puppet/parser/functions/debian_nextrelease.rb @@ -1,11 +1,11 @@ module Puppet::Parser::Functions newfunction(:debian_nextrelease, :type => :rvalue) do |args| - result = case #{args[0]} + case args[0] when 'oldstable' then 'stable' when 'stable' then 'testing' when 'testing' then 'unstable' when 'unstable' then 'experimental' + else 'unstable' end - return result end end -- cgit v1.2.3