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