fix scopes double import (#1066)

This commit is contained in:
Lars Lehtonen authored and GitHub committed 2021-04-05 12:16:38 -04:00
1 parent 6c48f6ea77
commit d3b72899f1
1 file changed
+1 -2
@@ -7,7 +7,6 @@ import (
"strings"
"github.com/hashicorp/boundary/internal/auth"
"github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
pb "github.com/hashicorp/boundary/internal/gen/controller/api/resources/scopes"
pbs "github.com/hashicorp/boundary/internal/gen/controller/api/services"
"github.com/hashicorp/boundary/internal/iam"
@@ -322,7 +321,7 @@ func (s Service) createInRepo(ctx context.Context, authResults auth.VerifyResult
return ToProto(out), nil
}
func (s Service) updateInRepo(ctx context.Context, parentScope *scopes.ScopeInfo, scopeId string, mask []string, item *pb.Scope) (*pb.Scope, error) {
func (s Service) updateInRepo(ctx context.Context, parentScope *pb.ScopeInfo, scopeId string, mask []string, item *pb.Scope) (*pb.Scope, error) {
var opts []iam.Option
if desc := item.GetDescription(); desc != nil {
opts = append(opts, iam.WithDescription(desc.GetValue()))