Skip to content

Commit

Permalink
Revert "changed $::operatingsystemmajrelease to $::lsbmajdistrelease …
Browse files Browse the repository at this point in the history
…for Debian"
  • Loading branch information
jfryman committed Feb 6, 2015
1 parent d5de40d commit 420ec9f
Show file tree
Hide file tree
Showing 2 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 @@ -20,7 +20,7 @@
}
'Debian': {
if ($::operatingsystem == 'ubuntu' and $::lsbdistcodename in ['lucid', 'precise', 'trusty'])
or ($::operatingsystem == 'debian' and $::lsbmajdistrelease in ['6', '7']) {
or ($::operatingsystem == 'debian' and $::operatingsystemmajrelease in ['6', '7']) {
$_module_os_overrides = {
'manage_repo' => true,
'daemon_user' => 'www-data',
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
end
end

shared_examples 'debian' do |operatingsystem, lsbdistcodename, lsbdistid, lsbmajdistrelease|
shared_examples 'debian' do |operatingsystem, lsbdistcodename, lsbdistid, operatingsystemmajrelease|
let(:facts) {{
:operatingsystem => operatingsystem,
:lsbmajdistrelease => lsbmajdistrelease,
:operatingsystemmajrelease => operatingsystemmajrelease,
:osfamily => 'Debian',
:lsbdistcodename => lsbdistcodename,
:lsbdistid => lsbdistid
Expand Down

0 comments on commit 420ec9f

Please sign in to comment.