Skip to content

Commit

Permalink
chore: Use new hub configuration for env var override (#2142)
Browse files Browse the repository at this point in the history
Missed this one in #2130

Signed-off-by: Charith Ellawala <charith@cerbos.dev>

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
  • Loading branch information
charithe committed May 7, 2024
1 parent 38c0f24 commit 5dbef14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cerbos/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ func (c *Cmd) Run() error {

if c.HubBundle != "" {
for _, override := range []string{
"storage.driver=bundle",
fmt.Sprintf("storage.bundle.remote.bundleLabel=%s", c.HubBundle),
"storage.driver=hub",
fmt.Sprintf("storage.hub.remote.bundleLabel=%s", c.HubBundle),
} {
if err := strvals.ParseInto(override, confOverrides); err != nil {
return fmt.Errorf("failed to parse Cerbos Hub override [%s]: %w", override, err)
Expand Down

0 comments on commit 5dbef14

Please sign in to comment.