chore: Cleanup sandbox registry

This commit is contained in:
Abhisek Datta
2026-01-08 16:22:31 +05:30
parent eeeed76f07
commit 8ba18338d9
4 changed files with 34 additions and 18 deletions
+5 -2
View File
@@ -23,9 +23,12 @@ func ApplySandbox(ctx context.Context, cmd *exec.Cmd, pmName string) (*sandbox.E
return sandbox.NewExecutionResult(), nil
}
registry := sandbox.NewProfileRegistry()
registry, err := sandbox.NewProfileRegistry()
if err != nil {
return nil, fmt.Errorf("failed to create profile registry: %w", err)
}
var policy *sandbox.SandboxPolicy
var err error
if cfg.SandboxProfileOverride != "" {
log.Debugf("Using sandbox profile override: %s", cfg.SandboxProfileOverride)