revert accidental new variable creation

This commit is contained in:
Dave Poole 2024-05-14 22:53:17 +00:00
Родитель 486672beba
Коммит c079e29fa1
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -117,7 +117,8 @@ func executeVMWatchHelper(lg log.Logger, attempt int, vmWatchSettings *vmWatchSe
}()
// Setup command
vmWatchCommand, resourceGovernanceRequired, err := setupVMWatchCommand(vmWatchSettings, hEnv)
var resourceGovernanceRequired bool
vmWatchCommand, resourceGovernanceRequired, err = setupVMWatchCommand(vmWatchSettings, hEnv)
if err != nil {
err = fmt.Errorf("[%v][PID -1] Attempt %d: VMWatch setup failed. Error: %w", time.Now().UTC().Format(time.RFC3339), attempt, err)
sendTelemetry(lg, telemetry.EventLevelError, telemetry.SetupVMWatchTask, err.Error())