aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/debian_nextcodename.rb
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-10 12:05:26 +0200
committerintrigeri <intrigeri@boum.org>2010-10-10 12:05:26 +0200
commitb4e24ecc0699687adec30bd38d78b34423eda1a1 (patch)
tree117533c8cf230c0ba3a4a494da3ae5f41ab88870 /lib/puppet/parser/functions/debian_nextcodename.rb
parent7b82df6d0bbd00f3d7c5dc4e0c47df84e6139301 (diff)
downloadpuppet-apt-b4e24ecc0699687adec30bd38d78b34423eda1a1.tar.gz
puppet-apt-b4e24ecc0699687adec30bd38d78b34423eda1a1.tar.bz2
Fix functions return values.
Diffstat (limited to 'lib/puppet/parser/functions/debian_nextcodename.rb')
-rw-r--r--lib/puppet/parser/functions/debian_nextcodename.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/puppet/parser/functions/debian_nextcodename.rb b/lib/puppet/parser/functions/debian_nextcodename.rb
index 37322a2..6bc4b6b 100644
--- a/lib/puppet/parser/functions/debian_nextcodename.rb
+++ b/lib/puppet/parser/functions/debian_nextcodename.rb
@@ -1,11 +1,11 @@
module Puppet::Parser::Functions
newfunction(:debian_nextcodename, :type => :rvalue) do |args|
- result = case #{args[0]}
- when 'etch' then 'lenny'
- when 'lenny' then 'squeeze'
- when 'squeeze' then 'sid'
- when 'sid' then 'experimental'
+ case args[0]
+ when "etch" then "lenny"
+ when "lenny" then "squeeze"
+ when "squeeze" then "sid"
+ when "sid" then "experimental"
+ else "sid"
end
- return result
end
end