diff --git a/libraries/helpers.rb b/libraries/helpers.rb index a317ae0..ce461ce 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -32,6 +32,7 @@ def self.codename_for_platform_version(version) case version when /^6\./ then 'squeeze' when /^7\./ then 'wheezy' + when /^8\./ then 'jessie' else 'stable' end end diff --git a/spec/libraries/helpers_spec.rb b/spec/libraries/helpers_spec.rb index 0a67ecb..f3d4592 100644 --- a/spec/libraries/helpers_spec.rb +++ b/spec/libraries/helpers_spec.rb @@ -29,7 +29,7 @@ '6.0.7' => 'squeeze', '7.0' => 'wheezy', '7.1' => 'wheezy', - '8.0' => 'stable', + '8.0' => 'jessie', 'unknown' => 'stable', } versions.each do |version, codename|