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