diff --git a/spec/acceptance/apt_spec.rb b/spec/acceptance/apt_spec.rb index c948df2..882c066 100644 --- a/spec/acceptance/apt_spec.rb +++ b/spec/acceptance/apt_spec.rb @@ -23,14 +23,16 @@ describe 'apt class' do 'preferences' => true, 'preferences.d' => true, }, - sources => { - 'puppetlabs' => { - 'ensure' => present, - 'location' => 'http://apt.puppetlabs.com', - 'repos' => 'main', - 'key' => { - 'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30', - 'server' => 'pgp.mit.edu', + sources => ? $::lsbdiscodename { + 'lucid' => undef, + default => { 'puppetlabs' => { + 'ensure' => present, + 'location' => 'http://apt.puppetlabs.com', + 'repos' => 'main', + 'key' => { + 'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30', + 'server' => 'pgp.mit.edu', + }, }, }, },