From fae3d6b0af2cc93d2fc9f136f5b37f38d66f93b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Fri, 22 Mar 2024 11:32:53 +0100 Subject: [PATCH] Rename lookupGroup -> lookupGroup --- wsl-pro-service/internal/system/landscape.go | 2 +- wsl-pro-service/internal/system/system.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wsl-pro-service/internal/system/landscape.go b/wsl-pro-service/internal/system/landscape.go index d7924fb19..7b195bb59 100644 --- a/wsl-pro-service/internal/system/landscape.go +++ b/wsl-pro-service/internal/system/landscape.go @@ -56,7 +56,7 @@ func (s *System) writeConfig(landscapeConfig string) (err error) { return err } - groupID, err := s.lookupGroup("landscape") + groupID, err := s.groupToGUID("landscape") if err != nil { return err } diff --git a/wsl-pro-service/internal/system/system.go b/wsl-pro-service/internal/system/system.go index 1a9550428..29f4d16fa 100644 --- a/wsl-pro-service/internal/system/system.go +++ b/wsl-pro-service/internal/system/system.go @@ -279,8 +279,8 @@ func (s *System) findCmdExe() (cmdExe string, err error) { return "", fmt.Errorf("none of the mounted drives contains subpath %s", subPath) } -// lookupGroup searches the group with the specified name and returns its GID. -func (s *System) lookupGroup(name string) (int, error) { +// groupToGUID searches the group with the specified name and returns its GID. +func (s *System) groupToGUID(name string) (int, error) { group, err := s.backend.LookupGroup(name) if err != nil { return 0, err