Commit 74bdcd8d authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Update Monitor/Upgrader Scope also for when allocation scope is subscription

parent b56ba3de
......@@ -3,7 +3,7 @@ allocation_scope = computer.getAllocationScope()
upgrade_scope = computer.getUpgradeScope()
if allocation_scope == 'open/public':
if allocation_scope in ['open/public', 'open/subscription']:
# Public computer capacity is handle by an alarm
capacity_scope = 'close'
monitor_scope = 'enabled'
......@@ -39,7 +39,7 @@ if self_person is None:
return
self_email = self_person.getDefaultEmailCoordinateText()
if allocation_scope == 'open/public':
if allocation_scope in ['open/public', 'open/subscription']:
# reset friends and update in place
edit_kw['subject_list'] = ['']
edit_kw['destination_section'] = None
......
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