Corrected regression with preference files name
Signed-off-by: Vincent Deygas <Vincent.Deygas@rewardgateway.com>
This commit is contained in:
parent
418820adf3
commit
a531b2b424
3 changed files with 3 additions and 3 deletions
|
@ -61,7 +61,7 @@ class apt::params {
|
||||||
},
|
},
|
||||||
'pref' => {
|
'pref' => {
|
||||||
'path' => $preferences_d,
|
'path' => $preferences_d,
|
||||||
'ext' => '',
|
'ext' => '.pref',
|
||||||
},
|
},
|
||||||
'list' => {
|
'list' => {
|
||||||
'path' => $sources_list_d,
|
'path' => $sources_list_d,
|
||||||
|
|
|
@ -37,7 +37,7 @@ define apt::setting (
|
||||||
validate_string($content)
|
validate_string($content)
|
||||||
}
|
}
|
||||||
|
|
||||||
if $setting_type == 'list' {
|
if ($setting_type == 'list') or ($setting_type == 'pref') {
|
||||||
$_priority = ''
|
$_priority = ''
|
||||||
} else {
|
} else {
|
||||||
$_priority = $priority
|
$_priority = $priority
|
||||||
|
|
|
@ -22,7 +22,7 @@ describe 'apt::setting' do
|
||||||
context 'with title=pref-teddybear' do
|
context 'with title=pref-teddybear' do
|
||||||
let(:title) { 'pref-teddybear' }
|
let(:title) { 'pref-teddybear' }
|
||||||
let(:params) { default_params }
|
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
|
end
|
||||||
|
|
||||||
context 'with title=list-teddybear' do
|
context 'with title=list-teddybear' do
|
||||||
|
|
Loading…
Reference in a new issue