Skip to content

Commit b2bcf31

Browse files
authored
use the actual bucket name when checking for simulation mode (#3416)
1 parent fdd3737 commit b2bcf31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/leakybucket/manager_load.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func LoadBuckets(cscfg *csconfig.CrowdsecServiceCfg, hub *cwhub.Hub, scenarios [
300300
bucketFactory.ret = response
301301

302302
if cscfg.SimulationConfig != nil {
303-
bucketFactory.Simulated = cscfg.SimulationConfig.IsSimulated(item.Name)
303+
bucketFactory.Simulated = cscfg.SimulationConfig.IsSimulated(bucketFactory.Name)
304304
}
305305

306306
bucketFactory.ScenarioVersion = item.State.LocalVersion

0 commit comments

Comments
 (0)