diff --git a/cmd/metrics/metrics.go b/cmd/metrics/metrics.go index ad4e7dc..201a30e 100644 --- a/cmd/metrics/metrics.go +++ b/cmd/metrics/metrics.go @@ -631,7 +631,7 @@ func runCmd(cmd *cobra.Command, args []string) error { defer func() { for _, targetContext := range targetContexts { if targetContext.nmiDisabled { - err := EnableNMIWatchdog(targetContext.target, targetContext.tempDir) + err := EnableNMIWatchdog(targetContext.target, localTempDir) if err != nil { slog.Error("failed to re-enable NMI watchdog", slog.String("target", targetContext.target.GetName()), slog.String("error", err.Error())) }