Skip to content

Commit

Permalink
base-profiles: rebased on master
Browse files Browse the repository at this point in the history
  • Loading branch information
jkellerer committed Feb 22, 2024
1 parent 6fdaa5c commit 1a82716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,10 @@ func runProfile(ctx *Context) error {
wrapper.addProgress(prom.NewProgress(profile, prom.NewMetrics(profile.Name, ctx.request.group, version, profile.PrometheusLabels)))
}

if accept := commandFilter(profile, global); accept(resticCommand) {
if accept := commandFilter(profile, ctx.global); accept(ctx.request.command) {
err = wrapper.runProfile()
} else {
err = fmt.Errorf("profile %q does not allow running %q", profile.Name, resticCommand)
err = fmt.Errorf("profile %q does not allow running %q", ctx.request.profile, ctx.request.command)
}
return err
}
Expand Down

0 comments on commit 1a82716

Please sign in to comment.