lets try a string instead of a bool for AssociatePublicIpAddress

This commit is contained in:
Nathan Sullivan 2013-11-26 13:44:39 +10:00
parent 5df7bc0acf
commit 0cfb7564d5
27 changed files with 33 additions and 33 deletions

View File

@ -7,7 +7,7 @@ package chroot
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/common"

View File

@ -3,7 +3,7 @@ package chroot
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

View File

@ -2,7 +2,7 @@ package chroot
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

View File

@ -2,8 +2,8 @@ package chroot
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"

View File

@ -2,7 +2,7 @@ package chroot
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

View File

@ -3,7 +3,7 @@ package chroot
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

View File

@ -2,7 +2,7 @@ package chroot
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

View File

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/CpuID/goamz/aws"
"github.com/mitchellh/packer/packer"
"strings"
"unicode"

View File

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/CpuID/goamz/aws"
"github.com/mitchellh/packer/packer"
)

View File

@ -2,8 +2,8 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/packer/packer"
"log"
"strings"

View File

@ -1,7 +1,7 @@
package common
import (
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
)
// BlockDevice

View File

@ -1,7 +1,7 @@
package common
import (
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"reflect"
"testing"
)

View File

@ -22,7 +22,7 @@ type RunConfig struct {
SecurityGroupId string `mapstructure:"security_group_id"`
SecurityGroupIds []string `mapstructure:"security_group_ids"`
SubnetId string `mapstructure:"subnet_id"`
AssociatePublicIpAddress bool `mapstructure:"associate_public_ip_address"`
AssociatePublicIpAddress string `mapstructure:"associate_public_ip_address"`
TemporaryKeyPairName string `mapstructure:"temporary_key_pair_name"`
VpcId string `mapstructure:"vpc_id"`
AvailabilityZone string `mapstructure:"availability_zone"`

View File

@ -4,7 +4,7 @@ import (
gossh "code.google.com/p/go.crypto/ssh"
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/communicator/ssh"
"time"

View File

@ -3,7 +3,7 @@ package common
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"log"
"time"

View File

@ -2,8 +2,8 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

View File

@ -2,8 +2,8 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

View File

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"os"

View File

@ -2,8 +2,8 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/aws"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

View File

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"io/ioutil"
@ -18,7 +18,7 @@ type StepRunSourceInstance struct {
SourceAMI string
IamInstanceProfile string
SubnetId string
AssociatePublicIpAddress bool
AssociatePublicIpAddress string
AvailabilityZone string
BlockDevices BlockDevices

View File

@ -2,7 +2,7 @@ package common
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/common/uuid"
"github.com/mitchellh/packer/packer"

View File

@ -7,7 +7,7 @@ package ebs
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/common"

View File

@ -2,7 +2,7 @@ package ebs
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

View File

@ -2,7 +2,7 @@ package ebs
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"

View File

@ -5,7 +5,7 @@ package instance
import (
"errors"
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/common"

View File

@ -2,7 +2,7 @@ package instance
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)

View File

@ -2,7 +2,7 @@ package instance
import (
"fmt"
"github.com/mitchellh/goamz/ec2"
"github.com/CpuID/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon "github.com/mitchellh/packer/builder/amazon/common"
"github.com/mitchellh/packer/packer"