From 4be7155a0159dd0bcc1be9df3ba284a63b353090 Mon Sep 17 00:00:00 2001 From: markuszilch Date: Fri, 23 Aug 2024 22:44:49 +0200 Subject: [PATCH] use new facter syntax --- lib/facter/easyrsa.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}