Commit e1add868 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: only return Software Instance related Compute Partition

parent 095b4beb
......@@ -198,9 +198,7 @@ class SlapOSComputeNodeMixin(object):
}
if user_type == 'Software Instance':
compute_partition_list = self.contentValues(
portal_type="Compute Partition",
checked_permission="View")
compute_partition_list = [user_document.getAggregateValue()]
else:
unrestrictedSearchResults = self.getPortalObject().portal_catalog.unrestrictedSearchResults
compute_partition_list = unrestrictedSearchResults(
......
Markdown is supported
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