// GetSCSIControllers will return a list of SCSI controller paths
GetSCSIControllers will return a list of SCSI controller paths
// GetSCSIControllers will return a list of SCSI controller paths
func (v *VirtualMachine) GetSCSIControllers() ([]SCSIController, error) {
	res, err := v.getResourceOfType(SCSIControllerResSubType)
	if err != nil {
		return nil, errors.Wrap(err, "getResourceOfType SCSIControllerResSubType")
	}
	vmPath, err := v.computerSystem.Path()
	if err != nil {
		return nil, errors.Wrap(err, "vmPath")
	}
	ret := make([]SCSIController, len(res))
	for idx, val := range res {
		ret[idx] = SCSIController{
			mgr:    v.mgr,
			path:   val,
			vmPath: vmPath,
		}
	}
	return ret, nil
}
func ( v * VirtualMachine ) GetSCSIControllers ( ) ( [ ] SCSIController , error ) { res , err := v . getResourceOfType ( SCSIControllerResSubType ) if err != nil { return nil , errors . Wrap ( err , " " ) } vmPath , err := v . computerSystem . Path ( ) if err != nil { return nil , errors . Wrap ( err , " " ) } ret := make ( [ ] SCSIController , len ( res ) ) for idx , val := range res { ret [ idx ] = SCSIController { mgr : v . mgr , path : val , vmPath : vmPath , } } return ret , nil }
GetSCSIControllers will return a list of SCSI controller paths
GetSCSIControllers will return a list of SCSI controller paths