Skip to content

Commit

Permalink
fix: run sleep bug where no default sleep is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Feb 6, 2024
1 parent 8c3f31f commit cfab4c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/commands/nuke/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/urfave/cli/v2"
"log"
"slices"
"time"
)

type log2LogrusWriter struct {
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit cfab4c2

Please # to comment.