mirror of https://github.com/docker/docs.git
ec2: remove unneeded subnetid var
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
32ed441fbb
commit
10b3d7fd9a
|
|
@ -275,11 +275,8 @@ func (d *Driver) Create() error {
|
||||||
VolumeType: "gp2",
|
VolumeType: "gp2",
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the subnet id
|
log.Debugf("launching instance in subnet %s", d.SubnetId)
|
||||||
subnetId := d.SubnetId
|
instance, err := d.getClient().RunInstance(d.AMI, d.InstanceType, d.Zone, 1, 1, d.SecurityGroupId, d.KeyName, d.SubnetId, bdm)
|
||||||
|
|
||||||
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)
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Error launching instance: %s", err)
|
return fmt.Errorf("Error launching instance: %s", err)
|
||||||
|
|
@ -348,7 +345,6 @@ func (d *Driver) Create() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) GetURL() (string, error) {
|
func (d *Driver) GetURL() (string, error) {
|
||||||
|
|
||||||
if d.IPAddress == "" {
|
if d.IPAddress == "" {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue