From cce06c2cc35ba5f8f0dc4d3cfda6363f57dde51d Mon Sep 17 00:00:00 2001 From: Michael Gaffney Date: Tue, 2 Jun 2020 07:53:35 -0400 Subject: [PATCH] Do not explicitly call the embedded store.HostCatalog (#88) --- internal/host/static/repository.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/host/static/repository.go b/internal/host/static/repository.go index 392974a9e7..c2fcd90ad6 100644 --- a/internal/host/static/repository.go +++ b/internal/host/static/repository.go @@ -56,7 +56,7 @@ func (r *Repository) CreateCatalog(ctx context.Context, c *HostCatalog, opt ...O if c.HostCatalog == nil { return nil, fmt.Errorf("create: static host catalog: embedded HostCatalog: %w", db.ErrNilParameter) } - if c.HostCatalog.ScopeId == "" { + if c.ScopeId == "" { return nil, fmt.Errorf("create: static host catalog: no scope id: %w", db.ErrInvalidParameter) } if c.PublicId != "" {