// EmptySlots returns a list of empty slot addresses that can be used to
// attach devices
EmptySlots returns a list of empty slot addresses that can be used to
attach devices
// EmptySlots returns a list of empty slot addresses that can be used to // attach devices
func (s *SCSIController) EmptySlots() ([]int, error) {
	devices, err := s.AttachedDevices()
	if err != nil {
		return nil, errors.Wrap(err, "AttachedDevices")
	}
	ret := []int{}
	for i := 0; i < MaxSCSIControllerSlots; i++ {
		if _, ok := devices[i]; !ok {
			ret = append(ret, i)
		}
	}
	return ret, nil
}
func ( s * SCSIController ) EmptySlots ( ) ( [ ] int , error ) { devices , err := s . AttachedDevices ( ) if err != nil { return nil , errors . Wrap ( err , " " ) } ret := [ ] int { } for i := 0 ; i < MaxSCSIControllerSlots ; i ++ { if _ , ok := devices [ i ] ; ! ok { ret = append ( ret , i ) } } return ret , nil }
EmptySlots returns a list of empty slot addresses that can be used to
attach devices
EmptySlots returns a list of empty slot addresses that can be used to attach devices