|
|
|
|
@ -10,8 +10,8 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type stepConfigAlicloudPublicIP struct {
|
|
|
|
|
publicIPAdress string
|
|
|
|
|
RegionId string
|
|
|
|
|
publicIPAddress string
|
|
|
|
|
RegionId string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *stepConfigAlicloudPublicIP) Run(_ context.Context, state multistep.StateBag) multistep.StepAction {
|
|
|
|
|
@ -25,7 +25,7 @@ func (s *stepConfigAlicloudPublicIP) Run(_ context.Context, state multistep.Stat
|
|
|
|
|
ui.Say(fmt.Sprintf("Error allocating public ip: %s", err))
|
|
|
|
|
return multistep.ActionHalt
|
|
|
|
|
}
|
|
|
|
|
s.publicIPAdress = ipaddress
|
|
|
|
|
s.publicIPAddress = ipaddress
|
|
|
|
|
ui.Say(fmt.Sprintf("Allocated public ip address %s.", ipaddress))
|
|
|
|
|
state.Put("ipaddress", ipaddress)
|
|
|
|
|
return multistep.ActionContinue
|
|
|
|
|
|