diff --git a/lib/facter/easyrsa.rb b/lib/facter/easyrsa.rb index 744235b2..79b0df21 100644 --- a/lib/facter/easyrsa.rb +++ b/lib/facter/easyrsa.rb @@ -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}