From 7aa4a25dbd6e3e2bbc571eb0f2c073d2d0615a30 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 1 Nov 2023 16:35:55 +0100 Subject: [PATCH] os.distro.id is the fact name --- manifests/script.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/script.pp b/manifests/script.pp index ce0a33d..538ced0 100644 --- a/manifests/script.pp +++ b/manifests/script.pp @@ -81,7 +81,7 @@ class sunetdrive::script ( provider => apt, } $drive_version = '0.3.1' - if $facts['os']['name'] == 'Debian' { + if $facts['os']['distro']['id'] == 'Debian' { $pip_cmd = 'pip3 install --break-system-packages' } else { $pip_cmd = 'python3 -m pip install'