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",
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue