Skip to content

Commit

Permalink
Update code for ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Aug 16, 2022
1 parent 8e02299 commit da538b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/type/firewall.rb
Expand Up @@ -1874,8 +1874,8 @@ def should_to_s(value)
PUPPETCODE
newvalues(%r{^([0-9a-f]{2}[:]){5}([0-9a-f]{2})$}i)
facter_os_name = Facter.value(:os)['name'].downcase
facter_os_release = Facter.value(:os)['release']['major'].to_i
if ['debian-11', 'sles-15'].include?("#{facter_os_name}-#{facter_os_release}")
facter_os_release = Facter.value(:os)['release']['major']
if ['ubuntu-22.04', 'debian-11', 'sles-15'].include?("#{facter_os_name}-#{facter_os_release}")
munge do |value|
_value = value.downcase
end
Expand Down

0 comments on commit da538b8

Please sign in to comment.