Fixed cdrom to be connected during startup (#8)

This commit is contained in:
SandeepPissay 2017-03-23 15:03:52 -07:00 committed by Miao Luo
parent 5889814c90
commit 4ace0f9ca5
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ func (c *VSphereCloud) UploadAndAttachISO(vm *string, isoFile string) error {
// passing empty cd-rom name so that the first one gets returned
cdrom, err := devices.FindCdrom("")
cdrom.Connectable.StartConnected = true
if err != nil {
return err
}