From a3e22baec002755a27c3d014032205b238e48151 Mon Sep 17 00:00:00 2001 From: odinje Date: Wed, 21 Jul 2021 23:04:09 +0200 Subject: [PATCH] Ensure rhel platform family for Rocky Linux --- host/host_linux.go | 2 +- v3/host/host_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/host/host_linux.go b/host/host_linux.go index e2d20de..ad630db 100644 --- a/host/host_linux.go +++ b/host/host_linux.go @@ -279,7 +279,7 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil family = "debian" case "fedora": family = "fedora" - case "oracle", "centos", "redhat", "scientific", "enterpriseenterprise", "amazon", "xenserver", "cloudlinux", "ibm_powerkvm": + case "oracle", "centos", "redhat", "scientific", "enterpriseenterprise", "amazon", "xenserver", "cloudlinux", "ibm_powerkvm", "rocky": family = "rhel" case "suse", "opensuse", "opensuse-leap", "opensuse-tumbleweed", "opensuse-tumbleweed-kubic", "sles", "sled", "caasp": family = "suse" diff --git a/v3/host/host_linux.go b/v3/host/host_linux.go index c149eec..e7c9e0d 100644 --- a/v3/host/host_linux.go +++ b/v3/host/host_linux.go @@ -283,7 +283,7 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil family = "debian" case "fedora": family = "fedora" - case "oracle", "centos", "redhat", "scientific", "enterpriseenterprise", "amazon", "xenserver", "cloudlinux", "ibm_powerkvm": + case "oracle", "centos", "redhat", "scientific", "enterpriseenterprise", "amazon", "xenserver", "cloudlinux", "ibm_powerkvm", "rocky": family = "rhel" case "suse", "opensuse", "opensuse-leap", "opensuse-tumbleweed", "opensuse-tumbleweed-kubic", "sles", "sled", "caasp": family = "suse"