Skip to content

Commit

Permalink
renamed function to better indicate the purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
lubedacht committed Jan 15, 2024
1 parent d4ac419 commit ce06e61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/service/cloud/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (s *Service) checkForPendingLANRequest(method string, lanID string) (status
}

lanPath := path.Join("datacenters", s.dataCenterID(), "lan")
requests, err := s.getPendingRequests(method, lanPath)
requests, err := s.findRelatedRequests(method, lanPath)
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/service/cloud/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
sdk "github.com/ionos-cloud/sdk-go/v6"
)

func (s *Service) getPendingRequests(method, resourcePath string) ([]sdk.Request, error) {
func (s *Service) findRelatedRequests(method, resourcePath string) ([]sdk.Request, error) {
requests, err := s.api().GetRequests(s.ctx, method, resourcePath)
if err != nil {
return nil, fmt.Errorf("could not get requests: %w", err)
Expand Down

0 comments on commit ce06e61

Please sign in to comment.