Browse Source

Do not download Boot2Docker when an existing template is specified

master v0.1.4-beta.2
Fábio Kaiser Rauber 6 years ago
parent
commit
ddb56f6626
  1. 2
      xenserver/xenserver.go

2
xenserver/xenserver.go

@ -320,10 +320,12 @@ func (d *Driver) Create() error {
d.setMachineNameIfNotSet() d.setMachineNameIfNotSet()
if d.osTemplateLabelName == "Other install media" {
b2dutils := mcnutils.NewB2dUtils(d.StorePath) b2dutils := mcnutils.NewB2dUtils(d.StorePath)
if err := b2dutils.CopyIsoToMachineDir(d.Boot2DockerURL, d.MachineName); err != nil { if err := b2dutils.CopyIsoToMachineDir(d.Boot2DockerURL, d.MachineName); err != nil {
return err return err
} }
}
log.Infof("Logging into XenServer %s...", d.Server) log.Infof("Logging into XenServer %s...", d.Server)
c, err := d.GetXenAPIClient() c, err := d.GetXenAPIClient()

Loading…
Cancel
Save