add context to steps

This commit is contained in:
Matthew Hooker 2018-01-25 14:42:39 -08:00
parent 7d85b31b29
commit dd2384483b
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
5 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ import (
type stepAddKeysToAPI struct{}
func (s *stepAddKeysToAPI) Run(state multistep.StateBag) multistep.StepAction {
func (s *stepAddKeysToAPI) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
// get variables from state
ui := state.Get("ui").(packer.Ui)
ui.Say("Adding SSH keys to API...")

View File

@ -11,7 +11,7 @@ import (
type stepCreateInstance struct{}
func (s *stepCreateInstance) Run(state multistep.StateBag) multistep.StepAction {
func (s *stepCreateInstance) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
// get variables from state
ui := state.Get("ui").(packer.Ui)
ui.Say("Creating Instance...")

View File

@ -11,7 +11,7 @@ import (
type stepCreateIPReservation struct{}
func (s *stepCreateIPReservation) Run(state multistep.StateBag) multistep.StepAction {
func (s *stepCreateIPReservation) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
ui.Say("Creating IP reservation...")
config := state.Get("config").(*Config)

View File

@ -12,7 +12,7 @@ import (
type stepSecurity struct{}
func (s *stepSecurity) Run(state multistep.StateBag) multistep.StepAction {
func (s *stepSecurity) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui)
ui.Say("Configuring security lists and rules to enable SSH access...")

View File

@ -10,7 +10,7 @@ import (
type stepSnapshot struct{}
func (s *stepSnapshot) Run(state multistep.StateBag) multistep.StepAction {
func (s *stepSnapshot) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
// get variables from state
ui := state.Get("ui").(packer.Ui)
ui.Say("Creating Snapshot...")