os.distro.id is the fact name
This commit is contained in:
parent
ed65bb0d94
commit
7aa4a25dbd
|
@ -81,7 +81,7 @@ class sunetdrive::script (
|
||||||
provider => apt,
|
provider => apt,
|
||||||
}
|
}
|
||||||
$drive_version = '0.3.1'
|
$drive_version = '0.3.1'
|
||||||
if $facts['os']['name'] == 'Debian' {
|
if $facts['os']['distro']['id'] == 'Debian' {
|
||||||
$pip_cmd = 'pip3 install --break-system-packages'
|
$pip_cmd = 'pip3 install --break-system-packages'
|
||||||
} else {
|
} else {
|
||||||
$pip_cmd = 'python3 -m pip install'
|
$pip_cmd = 'python3 -m pip install'
|
||||||
|
|
Loading…
Reference in a new issue