Do not explicitly call the embedded store.HostCatalog (#88)
This commit is contained in:
1 parent
c175fcde8d
commit
cce06c2cc3
1 file changed
+1
-1
@@ -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 != "" {
|
||||
|
||||
Reference in new issue
Block a user