Skip to content

Commit

Permalink
chore: update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Chief-Rishab committed Dec 6, 2023
1 parent 5980afb commit 19a1b4e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/handler/v1beta1/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type providerService interface {
Find(context.Context, domain.ProviderFilter) ([]*domain.Provider, error)
GetByID(context.Context, string) (*domain.Provider, error)
GetTypes(context.Context) ([]domain.ProviderType, error)
GetDefaultRoles(ctx context.Context, pType string, resourceType string) ([]string, error)
GetDefaultRoles(ctx context.Context, name string, resourceType string) ([]string, error)
GetOne(ctx context.Context, pType, urn string) (*domain.Provider, error)
Update(context.Context, *domain.Provider) error
FetchResources(context.Context) error
Expand Down
12 changes: 6 additions & 6 deletions api/handler/v1beta1/mocks/providerService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions core/provider/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@ func (s *Service) GetOne(ctx context.Context, pType, urn string) (*domain.Provid
return s.repository.GetOne(ctx, pType, urn)
}

func (s *Service) GetDefaultRoles(ctx context.Context, pType string, resourceType string) ([]string, error) {
c := s.getClient(pType)
func (s *Service) GetDefaultRoles(ctx context.Context, name string, resourceType string) ([]string, error) {
c := s.getClient(name)
if c == nil {
return nil, ErrInvalidProviderType
}

return c.GetDefaultRoles(ctx, pType, resourceType)
return c.GetDefaultRoles(ctx, name, resourceType)
}

// Update updates the non-zero value(s) only
Expand Down

0 comments on commit 19a1b4e

Please sign in to comment.