From b9b5de568415918d85cc7796000c2dd0d309f12d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 21 Jul 2013 22:46:58 -0700 Subject: [PATCH] fmt --- builder/amazon/common/step_security_group.go | 6 +++--- builder/amazon/ebs/builder.go | 3 ++- builder/amazon/instance/builder.go | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/builder/amazon/common/step_security_group.go b/builder/amazon/common/step_security_group.go index d7576f40a..5b01a68f1 100644 --- a/builder/amazon/common/step_security_group.go +++ b/builder/amazon/common/step_security_group.go @@ -13,7 +13,7 @@ import ( type StepSecurityGroup struct { SecurityGroupId string SSHPort int - VpcId string + VpcId string createdGroupId string } @@ -37,9 +37,9 @@ func (s *StepSecurityGroup) Run(state map[string]interface{}) multistep.StepActi groupName := fmt.Sprintf("packer %s", hex.EncodeToString(identifier.NewUUID().Raw())) log.Printf("Temporary group name: %s", groupName) group := ec2.SecurityGroup{ - Name: groupName, + Name: groupName, Description: "Temporary group for Packer", - VpcId: s.VpcId, + VpcId: s.VpcId, } groupResp, err := ec2conn.CreateSecurityGroup(group) if err != nil { diff --git a/builder/amazon/ebs/builder.go b/builder/amazon/ebs/builder.go index 629ded646..46f5231fc 100644 --- a/builder/amazon/ebs/builder.go +++ b/builder/amazon/ebs/builder.go @@ -92,12 +92,13 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe &awscommon.StepSecurityGroup{ SecurityGroupId: b.config.SecurityGroupId, SSHPort: b.config.SSHPort, + VpcId: b.config.VpcId, }, &awscommon.StepRunSourceInstance{ ExpectedRootDevice: "ebs", InstanceType: b.config.InstanceType, SourceAMI: b.config.SourceAmi, - SubnetId: b.config.SubnetId, + SubnetId: b.config.SubnetId, }, &common.StepConnectSSH{ SSHAddress: awscommon.SSHAddress(b.config.SSHPort), diff --git a/builder/amazon/instance/builder.go b/builder/amazon/instance/builder.go index e3b7e2ef7..196907698 100644 --- a/builder/amazon/instance/builder.go +++ b/builder/amazon/instance/builder.go @@ -98,12 +98,13 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe &awscommon.StepSecurityGroup{ SecurityGroupId: b.config.SecurityGroupId, SSHPort: b.config.SSHPort, + VpcId: b.config.VpcId, }, &awscommon.StepRunSourceInstance{ ExpectedRootDevice: "instance-store", InstanceType: b.config.InstanceType, SourceAMI: b.config.SourceAmi, - SubnetId: b.config.SubnetId, + SubnetId: b.config.SubnetId, }, &common.StepConnectSSH{ SSHAddress: awscommon.SSHAddress(b.config.SSHPort),