fixing add hdd to lot

This commit is contained in:
Cayo Puigdefabregas 2022-11-21 15:13:36 +01:00
parent a09e087b0e
commit 35dd08c9c8
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ class LotDeviceView(LotBaseChildrenView):
dev_qry = Device.query.filter(Device.id.in_(ids)).filter(Device.owner == g.user) dev_qry = Device.query.filter(Device.id.in_(ids)).filter(Device.owner == g.user)
for dev in dev_qry: for dev in dev_qry:
if isinstance(dev, DataStorage) and dev.parent: if isinstance(dev, DataStorage) and not dev.orphan:
continue continue
devices.add(dev) devices.add(dev)