Commit b95a5689 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon: rename availzone to availability zone

parent 7fa797d8
...@@ -23,7 +23,7 @@ type RunConfig struct { ...@@ -23,7 +23,7 @@ type RunConfig struct {
SubnetId string `mapstructure:"subnet_id"` SubnetId string `mapstructure:"subnet_id"`
TemporaryKeyPairName string `mapstructure:"temporary_key_pair_name"` TemporaryKeyPairName string `mapstructure:"temporary_key_pair_name"`
VpcId string `mapstructure:"vpc_id"` VpcId string `mapstructure:"vpc_id"`
AvailZone string `mapstructure:"avail_zone"` AvailabilityZone string `mapstructure:"availability_zone"`
// Unexported fields that are calculated from others // Unexported fields that are calculated from others
sshTimeout time.Duration sshTimeout time.Duration
...@@ -84,7 +84,7 @@ func (c *RunConfig) Prepare(t *packer.ConfigTemplate) []error { ...@@ -84,7 +84,7 @@ func (c *RunConfig) Prepare(t *packer.ConfigTemplate) []error {
"subnet_id": &c.SubnetId, "subnet_id": &c.SubnetId,
"temporary_key_pair_name": &c.TemporaryKeyPairName, "temporary_key_pair_name": &c.TemporaryKeyPairName,
"vpc_id": &c.VpcId, "vpc_id": &c.VpcId,
"avail_zone": &c.AvailZone, "availability_zone": &c.AvailabilityZone,
} }
for n, ptr := range templates { for n, ptr := range templates {
......
...@@ -18,7 +18,7 @@ type StepRunSourceInstance struct { ...@@ -18,7 +18,7 @@ type StepRunSourceInstance struct {
SourceAMI string SourceAMI string
IamInstanceProfile string IamInstanceProfile string
SubnetId string SubnetId string
AvailZone string AvailabilityZone string
BlockDevices BlockDevices BlockDevices BlockDevices
instance *ec2.Instance instance *ec2.Instance
...@@ -52,7 +52,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi ...@@ -52,7 +52,7 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
IamInstanceProfile: s.IamInstanceProfile, IamInstanceProfile: s.IamInstanceProfile,
SubnetId: s.SubnetId, SubnetId: s.SubnetId,
BlockDevices: s.BlockDevices.BuildLaunchDevices(), BlockDevices: s.BlockDevices.BuildLaunchDevices(),
AvailZone: s.AvailZone, AvailZone: s.AvailabilityZone,
} }
ui.Say("Launching a source AWS instance...") ui.Say("Launching a source AWS instance...")
......
...@@ -101,7 +101,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ...@@ -101,7 +101,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
SourceAMI: b.config.SourceAmi, SourceAMI: b.config.SourceAmi,
IamInstanceProfile: b.config.IamInstanceProfile, IamInstanceProfile: b.config.IamInstanceProfile,
SubnetId: b.config.SubnetId, SubnetId: b.config.SubnetId,
AvailZone: b.config.AvailZone, AvailabilityZone: b.config.AvailabilityZone,
BlockDevices: b.config.BlockDevices, BlockDevices: b.config.BlockDevices,
}, },
&common.StepConnectSSH{ &common.StepConnectSSH{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment