diff options
Diffstat (limited to 'lib/puppet/parser/functions/debian_release.rb')
-rw-r--r-- | lib/puppet/parser/functions/debian_release.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/parser/functions/debian_release.rb b/lib/puppet/parser/functions/debian_release.rb index ec46601..64feb66 100644 --- a/lib/puppet/parser/functions/debian_release.rb +++ b/lib/puppet/parser/functions/debian_release.rb @@ -1,12 +1,13 @@ module Puppet::Parser::Functions newfunction(:debian_release, :type => :rvalue) do |args| - result = case #{args[0]} + case args[0] when 'etch' then 'oldstable' when 'lenny' then 'stable' when 'squeeze' then 'testing' + when 'wheezy' then 'testing' when 'sid' then 'unstable' when 'experimental' then 'experimental' + else 'testing' end - return result end end |