Skip to content

Commit

Permalink
use the actual bucket name when checking for simulation mode (#3416)
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus authored Jan 27, 2025
1 parent fdd3737 commit b2bcf31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/leakybucket/manager_load.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func LoadBuckets(cscfg *csconfig.CrowdsecServiceCfg, hub *cwhub.Hub, scenarios [
bucketFactory.ret = response

if cscfg.SimulationConfig != nil {
bucketFactory.Simulated = cscfg.SimulationConfig.IsSimulated(item.Name)
bucketFactory.Simulated = cscfg.SimulationConfig.IsSimulated(bucketFactory.Name)
}

bucketFactory.ScenarioVersion = item.State.LocalVersion
Expand Down

0 comments on commit b2bcf31

Please sign in to comment.