fix logical error
This commit is contained in:
parent
512565c49b
commit
a115aac9f7
|
|
@ -101,7 +101,7 @@ func (u *fishboneUseCase) CreateFishbone(fishbone req.FishboneDTO) error {
|
|||
}
|
||||
|
||||
// Validate port availability
|
||||
if startDevicePort.PortAvailable < 1 {
|
||||
if startDevicePort.PortAvailable < 1 && startDevice.DeviceType == "ODP" {
|
||||
return fmt.Errorf("start device has no available ports (available: %d, required: 1)",
|
||||
startDevicePort.PortAvailable)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue