Commit 9b12adc0 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Create Certificate Login instead ERP5 Login for Computers and instances

parent a1bc2c1b
<allowed_content_type_list>
<portal_type id="Computer">
<item>Certificate Login</item>
<item>ERP5 Login</item>
</portal_type>
<portal_type id="Hosting Subscription Module">
......@@ -9,6 +10,7 @@
<item>Software Installation</item>
</portal_type>
<portal_type id="Software Instance">
<item>Certificate Login</item>
<item>ERP5 Login</item>
</portal_type>
<portal_type id="Software Instance Module">
......
......@@ -7,7 +7,7 @@ computer.edit(
)
erp5_login = computer.newContent(
portal_type="ERP5 Login",
portal_type="Certificate Login",
reference=computer.getReference()
)
erp5_login.validate()
......
......@@ -100,11 +100,11 @@ if (request_software_instance is None):
)
request_software_instance.validate()
if software_instance_portal_type == "Software Instance":
# Include ERP5 Login so Instance become a User
erp5_login = request_software_instance.newContent(
portal_type="ERP5 Login",
# Include Certificate Login so Instance become a User
certificate_login = request_software_instance.newContent(
portal_type="Certificate Login",
reference=request_software_instance.getReference())
erp5_login = erp5_login.validate()
certificate_login.validate()
graph[request_software_instance.getUid()] = []
......
Computer | Certificate Login
Computer | ERP5 Login
Hosting Subscription Module | Hosting Subscription
Software Installation Module | Software Installation
Software Instance Module | Slave Instance
Software Instance Module | Software Instance
Software Instance | Certificate Login
Software Instance | ERP5 Login
\ No newline at end of file
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