From cfab4c2d4c338c6fd92916da5fe1900d70bcd3a8 Mon Sep 17 00:00:00 2001 From: Erik Kristensen Date: Mon, 5 Feb 2024 17:02:55 -0700 Subject: [PATCH] fix: run sleep bug where no default sleep is set --- pkg/commands/nuke/command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/commands/nuke/command.go b/pkg/commands/nuke/command.go index 75e0763..6ff6435 100644 --- a/pkg/commands/nuke/command.go +++ b/pkg/commands/nuke/command.go @@ -16,6 +16,7 @@ import ( "github.com/urfave/cli/v2" "log" "slices" + "time" ) type log2LogrusWriter struct { @@ -83,6 +84,8 @@ func execute(c *cli.Context) error { n := libnuke.New(params, filters, parsedConfig.Settings) + n.SetRunSleep(5 * time.Second) + tenantConfig := parsedConfig.Accounts[c.String("tenant-id")] tenantResourceTypes := types.ResolveResourceTypes( resource.GetNamesForScope(nuke.Tenant),