Commit ed93a8b4 authored by Romain Courteaud's avatar Romain Courteaud

slapos_jio: allocation_scope/open/public and friend do not exist anymore

parent f65c2ea0
portal = context.getPortalObject() portal = context.getPortalObject()
category_public = portal.restrictedTraverse("portal_categories/allocation_scope/open/public", None)
category_friend = portal.restrictedTraverse("portal_categories/allocation_scope/open/friend", None)
return portal.portal_catalog( return portal.portal_catalog(
portal_type='Compute Node', portal_type='Compute Node',
default_allocation_scope_uid=[ default_allocation_scope_uid=[
category_public.getUid(), portal.restrictedTraverse("portal_categories/allocation_scope/open").getUid()
category_friend.getUid()], ],
validation_state="validated", validation_state="validated",
) )
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