Skip to content

Commit

Permalink
Log before sleeping
Browse files Browse the repository at this point in the history
  • Loading branch information
vheon committed Nov 6, 2023
1 parent 796a9ce commit 64bde2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/lxd/step_lxd_launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ func (s *stepLxdLaunch) Run(ctx context.Context, state multistep.StateBag) multi
// TODO: Should we check `lxc info <container>` for "Running"?
// We have to do this so /tmp doesn't get cleared and lose our provisioner scripts.

time.Sleep(time.Duration(sleep_seconds) * time.Second)
log.Printf("Sleeping for %d seconds...", sleep_seconds)
time.Sleep(time.Duration(sleep_seconds) * time.Second)

// instance_id is the generic term used so that users can have access to the
// instance id inside the provisioners, used in step_provision.
state.Put("instance_id", name)
Expand Down

0 comments on commit 64bde2e

Please sign in to comment.