Commit 38dc73d0 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: source_administration is not used anymore on Compute Node

parent 3b4caec0
...@@ -18,21 +18,4 @@ edit_kw = { ...@@ -18,21 +18,4 @@ edit_kw = {
'monitor_scope': monitor_scope 'monitor_scope': monitor_scope
} }
self_person = compute_node.getSourceAdministrationValue(portal_type="Person")
if self_person is None:
compute_node.edit(**edit_kw)
return
self_email = self_person.getDefaultEmailCoordinateText()
if allocation_scope in ['open/public', 'open/subscription']:
# reset friends and update in place
edit_kw['subject_list'] = ['']
edit_kw['destination_section'] = None
else:
subject_list = compute_node.getSubjectList()
if self_email not in subject_list:
# add self as friend
subject_list.append(self_email)
edit_kw['subject_list'] = subject_list
compute_node.edit(**edit_kw) compute_node.edit(**edit_kw)
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