Skip to content

Commit

Permalink
use pointer to config rather than config
Browse files Browse the repository at this point in the history
  • Loading branch information
SwampDragons committed Dec 19, 2019
1 parent 5054b1b commit b23425f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion post-processor/vagrant-cloud/post-processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (p *PostProcessor) PostProcess(ctx context.Context, ui packer.Ui, artifact

// Set up the state
state := new(multistep.BasicStateBag)
state.Put("config", p.config)
state.Put("config", &p.config)
state.Put("client", p.client)
state.Put("artifact", artifact)
state.Put("artifactFilePath", artifact.Files()[0])
Expand Down
2 changes: 1 addition & 1 deletion post-processor/vagrant-cloud/step_create_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type stepCreateVersion struct {
func (s *stepCreateVersion) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
client := state.Get("client").(*VagrantCloudClient)
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(Config)
config := state.Get("config").(*Config)
box := state.Get("box").(*Box)

ui.Say(fmt.Sprintf("Creating version: %s", config.Version))
Expand Down
2 changes: 1 addition & 1 deletion post-processor/vagrant-cloud/step_release_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (s *stepReleaseVersion) Run(ctx context.Context, state multistep.StateBag)
ui := state.Get("ui").(packer.Ui)
box := state.Get("box").(*Box)
version := state.Get("version").(*Version)
config := state.Get("config").(Config)
config := state.Get("config").(*Config)

ui.Say(fmt.Sprintf("Releasing version: %s", version.Version))

Expand Down
2 changes: 1 addition & 1 deletion post-processor/vagrant-cloud/step_verify_box.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type stepVerifyBox struct {
func (s *stepVerifyBox) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
client := state.Get("client").(*VagrantCloudClient)
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(Config)
config := state.Get("config").(*Config)

ui.Say(fmt.Sprintf("Verifying box is accessible: %s", config.Tag))

Expand Down

0 comments on commit b23425f

Please sign in to comment.