ec2: remove unneeded subnetid var

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2015-02-27 18:08:33 -05:00
parent 32ed441fbb
commit 10b3d7fd9a
No known key found for this signature in database
GPG Key ID: A519480096146526
1 changed files with 2 additions and 6 deletions

View File

@ -275,11 +275,8 @@ func (d *Driver) Create() error {
VolumeType: "gp2",
}
// get the subnet id
subnetId := d.SubnetId
log.Debugf("launching instance in subnet %s", subnetId)
instance, err := d.getClient().RunInstance(d.AMI, d.InstanceType, d.Zone, 1, 1, d.SecurityGroupId, d.KeyName, subnetId, bdm)
log.Debugf("launching instance in subnet %s", d.SubnetId)
instance, err := d.getClient().RunInstance(d.AMI, d.InstanceType, d.Zone, 1, 1, d.SecurityGroupId, d.KeyName, d.SubnetId, bdm)
if err != nil {
return fmt.Errorf("Error launching instance: %s", err)
@ -348,7 +345,6 @@ func (d *Driver) Create() error {
}
func (d *Driver) GetURL() (string, error) {
if d.IPAddress == "" {
return "", nil
}