Should only default to first controller if its not 1 of the 2 controllers available

pull/2576/head
Taliesin Sisson 11 years ago
parent d57517d4a4
commit 54733323a8

@ -112,7 +112,7 @@ func (s *StepMountSecondaryDvdImages) addAndMountDvdDisk(vmName string, isoPath
return properties, err
}
if controllerNumber != "0" || controllerNumber != "1" {
if controllerNumber != "0" && controllerNumber != "1" {
//There are only 2 ide controllers, try to use the one the hdd is attached too
controllerNumber = "0"
}

Loading…
Cancel
Save