Commit 7e703410 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Fixed diskserver in case of querying for a combination of datapools and diskservers of a diskpool

parent cb2cf88d
......@@ -160,6 +160,8 @@ def getDataPoolRelatedData(diskServerIds, dataPoolIds):
sqlStatement += 'DiskServer.dataPool IN (' + \
', '.join([str(x) for x in dataPoolIds]) + ')'
if diskServerIds:
if dataPoolIds:
sqlStatement += ' OR '
sqlStatement += 'DiskServer.id IN (' + \
', '.join([str(x) for x in diskServerIds]) + ')'
sqlStatement += ')'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment