From f50e0572ef92663c0cdc44a278d3279fb4e14452 Mon Sep 17 00:00:00 2001 From: James Pickett Date: Mon, 12 Aug 2024 14:11:30 -0700 Subject: [PATCH] drop name from runtime details, not consistent with osq --- pkg/osquery/enrollment_details.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/osquery/enrollment_details.go b/pkg/osquery/enrollment_details.go index 00014fea6..22a74c006 100644 --- a/pkg/osquery/enrollment_details.go +++ b/pkg/osquery/enrollment_details.go @@ -37,7 +37,6 @@ func getEnrollDetails(ctx context.Context, osquerydPath string) (service.Enrollm return details, errors.New("Skipping enrollment details") } - details.OSName = osqOsName() details.OSPlatform = runtime.GOOS details.OSPlatformLike = runtime.GOOS @@ -155,16 +154,3 @@ func getEnrollDetails(ctx context.Context, osquerydPath string) (service.Enrollm return details, nil } - -func osqOsName() string { - switch runtime.GOOS { - case "darwin": - return "macOS" - case "linux": - return "Linux" - case "windows": - return "Windows" - default: - return "Unknown" - } -}