add context to steps
This commit is contained in:
parent
7d85b31b29
commit
dd2384483b
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
type stepAddKeysToAPI struct{}
|
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
|
// get variables from state
|
||||||
ui := state.Get("ui").(packer.Ui)
|
ui := state.Get("ui").(packer.Ui)
|
||||||
ui.Say("Adding SSH keys to API...")
|
ui.Say("Adding SSH keys to API...")
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
type stepCreateInstance struct{}
|
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
|
// get variables from state
|
||||||
ui := state.Get("ui").(packer.Ui)
|
ui := state.Get("ui").(packer.Ui)
|
||||||
ui.Say("Creating Instance...")
|
ui.Say("Creating Instance...")
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
type stepCreateIPReservation struct{}
|
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 := state.Get("ui").(packer.Ui)
|
||||||
ui.Say("Creating IP reservation...")
|
ui.Say("Creating IP reservation...")
|
||||||
config := state.Get("config").(*Config)
|
config := state.Get("config").(*Config)
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
|
|
||||||
type stepSecurity struct{}
|
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 := state.Get("ui").(packer.Ui)
|
||||||
|
|
||||||
ui.Say("Configuring security lists and rules to enable SSH access...")
|
ui.Say("Configuring security lists and rules to enable SSH access...")
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
type stepSnapshot struct{}
|
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
|
// get variables from state
|
||||||
ui := state.Get("ui").(packer.Ui)
|
ui := state.Get("ui").(packer.Ui)
|
||||||
ui.Say("Creating Snapshot...")
|
ui.Say("Creating Snapshot...")
|
||||||
|
|
Loading…
Reference in New Issue