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

pull/98/head
Michael Gaffney 6 years ago committed by GitHub
parent c175fcde8d
commit cce06c2cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 != "" {

Loading…
Cancel
Save