From 2a9cb50b17ba447d086da394bae8c6e1de12ba8d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 2 Sep 2014 10:17:52 -0700 Subject: [PATCH] builder/amazon: fix broken build --- builder/amazon/common/run_config.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/builder/amazon/common/run_config.go b/builder/amazon/common/run_config.go index ea97af41e..d7dd6ec99 100644 --- a/builder/amazon/common/run_config.go +++ b/builder/amazon/common/run_config.go @@ -112,30 +112,6 @@ func (c *RunConfig) Prepare(t *packer.ConfigTemplate) []error { } } - templates := map[string]*string{ - "iam_instance_profile": &c.IamInstanceProfile, - "instance_type": &c.InstanceType, - "ssh_timeout": &c.RawSSHTimeout, - "ssh_username": &c.SSHUsername, - "ssh_private_key_file": &c.SSHPrivateKeyFile, - "source_ami": &c.SourceAmi, - "subnet_id": &c.SubnetId, - "temporary_key_pair_name": &c.TemporaryKeyPairName, - "vpc_id": &c.VpcId, - "availability_zone": &c.AvailabilityZone, - "user_data": &c.UserData, - "user_data_file": &c.UserDataFile, - } - - for n, ptr := range templates { - var err error - *ptr, err = t.Process(*ptr, nil) - if err != nil { - errs = append( - errs, fmt.Errorf("Error processing %s: %s", n, err)) - } - } - sliceTemplates := map[string][]string{ "security_group_ids": c.SecurityGroupIds, }