Commit 0cdb440b authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: drop allocation_scope/open categories

parent fe606689
compute_node = state_object["object"]
allocation_scope = compute_node.getAllocationScope()
if allocation_scope in ['open/public', 'open/subscription']:
if allocation_scope.startsWith('open'):
# ensure sub allocation scope are not used anymore
assert allocation_scope == 'open', allocation_scope
# Public compute_node capacity is handle by an alarm
capacity_scope = 'close'
monitor_scope = 'enabled'
elif allocation_scope == 'open/friend':
# Capacity is not handled for 'private' compute_nodes
capacity_scope = 'open'
monitor_scope = 'enabled'
else:
monitor_scope = 'disabled'
capacity_scope = 'close'
......
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