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. 8
      xenserver/xenserver.go

8
xenserver/xenserver.go

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

Loading…
Cancel
Save