From e429d8aae82593ec3fc9345532fff557e8cf036e Mon Sep 17 00:00:00 2001 From: Yury Gargay Date: Fri, 26 Jan 2024 14:03:09 +0100 Subject: [PATCH] Use PeerMeta.OsVersion in checks --- management/server/posture/os_version.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/management/server/posture/os_version.go b/management/server/posture/os_version.go index 3c2bdf8ef52..b3cae5478c0 100644 --- a/management/server/posture/os_version.go +++ b/management/server/posture/os_version.go @@ -28,11 +28,11 @@ func (c *OSVersionCheck) Check(peer nbpeer.Peer) (bool, error) { peerGoOS := peer.Meta.GoOS switch peerGoOS { case "android": - return checkMinVersion(peerGoOS, peer.Meta.Core, c.Android) + return checkMinVersion(peerGoOS, peer.Meta.OSVersion, c.Android) case "darwin": - return checkMinVersion(peerGoOS, peer.Meta.Core, c.Darwin) + return checkMinVersion(peerGoOS, peer.Meta.OSVersion, c.Darwin) case "ios": - return checkMinVersion(peerGoOS, peer.Meta.Core, c.Ios) + return checkMinVersion(peerGoOS, peer.Meta.OSVersion, c.Ios) case "linux": return checkMinKernelVersion(peerGoOS, peer.Meta.KernelVersion, c.Linux) case "windows":