Corrected regression with preference files name

Signed-off-by: Vincent Deygas <Vincent.Deygas@rewardgateway.com>
This commit is contained in:
Vincent 2015-08-24 17:53:02 +01:00 committed by Vincent Deygas
parent 418820adf3
commit a531b2b424
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ class apt::params {
},
'pref' => {
'path' => $preferences_d,
'ext' => '',
'ext' => '.pref',
},
'list' => {
'path' => $sources_list_d,

View file

@ -37,7 +37,7 @@ define apt::setting (
validate_string($content)
}
if $setting_type == 'list' {
if ($setting_type == 'list') or ($setting_type == 'pref') {
$_priority = ''
} else {
$_priority = $priority

View file

@ -22,7 +22,7 @@ describe 'apt::setting' do
context 'with title=pref-teddybear' do
let(:title) { 'pref-teddybear' }
let(:params) { default_params }
it { is_expected.to contain_file('/etc/apt/preferences.d/50teddybear').that_notifies('Class[Apt::Update]') }
it { is_expected.to contain_file('/etc/apt/preferences.d/teddybear.pref').that_notifies('Class[Apt::Update]') }
end
context 'with title=list-teddybear' do