Skip to content

Commit

Permalink
Merge pull request #48 from ekristen/fix-sleep-bug
Browse files Browse the repository at this point in the history
fix: run sleep bug where no default sleep is set
  • Loading branch information
ekristen authored Feb 6, 2024
2 parents 8c3f31f + cfab4c2 commit 35cf06f
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 35cf06f

Please # to comment.