Do not explicitly call the embedded store.HostCatalog (#88)

This commit is contained in:
Michael Gaffney authored and GitHub committed 2020-06-02 07:53:35 -04:00
1 parent c175fcde8d
commit cce06c2cc3
1 file changed
+1 -1
+1 -1
View File
@@ -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 != "" {