Skip to content
Snippets Groups Projects
Commit 620ad399 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 5448794b
Branches
Tags
No related merge requests found
......@@ -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 += ')'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment