builder/amazon/common: Add AvailZone to StepRunSourceInstance struct

[GH-536]
This commit is contained in:
Matthew Hooker 2013-10-21 08:08:00 -07:00
parent 60428cef60
commit 1aa551a49c
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ type StepRunSourceInstance struct {
SourceAMI string
IamInstanceProfile string
SubnetId string
AvailZone string
BlockDevices BlockDevices
instance *ec2.Instance
@ -51,6 +52,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
IamInstanceProfile: s.IamInstanceProfile,
SubnetId: s.SubnetId,
BlockDevices: s.BlockDevices.BuildLaunchDevices(),
AvailZone: s.AvailZone,
}
ui.Say("Launching a source AWS instance...")