Skip to content

Commit

Permalink
Merge pull request #562 from RewardGateway/preference_file_name
Browse files Browse the repository at this point in the history
Corrected regression with preference files name
  • Loading branch information
Morgan Haskel committed Sep 2, 2015
2 parents 418820a + a531b2b commit ff37b84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
'pref' => {
'path' => $preferences_d,
'ext' => '',
'ext' => '.pref',
},
'list' => {
'path' => $sources_list_d,
Expand Down
2 changes: 1 addition & 1 deletion manifests/setting.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
validate_string($content)
}

if $setting_type == 'list' {
if ($setting_type == 'list') or ($setting_type == 'pref') {
$_priority = ''
} else {
$_priority = $priority
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/setting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
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
Expand Down

0 comments on commit ff37b84

Please sign in to comment.