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

This commit is contained in:
Taliesin Sisson 2015-10-18 12:26:44 +01:00
parent d57517d4a4
commit 54733323a8
1 changed files with 1 additions and 1 deletions

View File

@ -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"
}