Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
CreateNamespace: do not hide error from lower call
Browse files Browse the repository at this point in the history
  • Loading branch information
okartau committed Jan 4, 2019
1 parent 1526d0d commit 6a49330
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ndctl/ndctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ func (ctx *Context) CreateNamespace(opts CreateNamespaceOpts) (*Namespace, error
for _, r := range bus.ActiveRegions() {
if ns, err := r.CreateNamespace(opts); err == nil {
return ns, nil
} else {
return nil, err
}
}
}
Expand Down

0 comments on commit 6a49330

Please sign in to comment.