Skip to content

Commit

Permalink
use new facter syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Aug 23, 2024
1 parent f3682fa commit 4be7155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/facter/easyrsa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
setcode do
binaryv2 = ''
binaryv3 = ''
operatingsystem = Facter.value(:operatingsystem)
operatingsystemrelease = Facter.value(:operatingsystemrelease)
operatingsystem = Facter.value(:os)['name']
operatingsystemrelease = Facter.value(:os)['release']['major']

case operatingsystem
when %r{RedHat|CentOS|Amazon}
Expand Down

0 comments on commit 4be7155

Please sign in to comment.