Skip to content

Commit

Permalink
drop name from runtime details, not consistent with osq
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Aug 12, 2024
1 parent f56ba93 commit f50e057
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/osquery/enrollment_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
}
}

0 comments on commit f50e057

Please sign in to comment.