Skip to content

Commit

Permalink
build(deps): Update the prism go client to v0.5.1
Browse files Browse the repository at this point in the history
The newer versions of the client admit a context in function
signatures.
  • Loading branch information
thunderboltsid committed Sep 26, 2024
1 parent 9a407aa commit 9c09a4e
Show file tree
Hide file tree
Showing 10 changed files with 286 additions and 287 deletions.
3 changes: 3 additions & 0 deletions builder/nutanix/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
state.Put("driver", driver)
state.Put("hook", hook)
state.Put("ui", ui)
// multistep's step.Cleanup doesn't admit context but context is actually needed for cleanup,
// so we put it in the state bag to be used by the cleanup step
state.Put("ctx", ctx)

steps := []multistep.Step{
&commonsteps.StepCreateCD{
Expand Down
1 change: 0 additions & 1 deletion builder/nutanix/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/hashicorp/packer-plugin-sdk/common"
"github.com/hashicorp/packer-plugin-sdk/communicator"

"github.com/hashicorp/packer-plugin-sdk/multistep/commonsteps"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer-plugin-sdk/random"
Expand Down
Loading

0 comments on commit 9c09a4e

Please sign in to comment.