Commit 65f88263 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Keep using older group_id when generate new references

  When upgrade the site, we shouldn't revert the count, else it may lead to duplicated values.
parent 48563bed
Pipeline #17137 failed with stage
in 0 seconds
......@@ -52,7 +52,7 @@ else:
context.REQUEST.set('request_instance_tree', None)
return
instance_tree_reference = "HOSTSUBS-%s" % context.getPortalObject().portal_ids\
.generateNewId(id_group='slap_instance_tree_reference', id_generator='uid')
.generateNewId(id_group='slap_hosting_subscription_reference', id_generator='uid')
request_instance_tree = portal.getDefaultModule(portal_type=instance_tree_portal_type).newContent(
portal_type=instance_tree_portal_type,
reference=instance_tree_reference,
......
......@@ -52,6 +52,12 @@
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>script_Person_requestSoftwareInstance</string> </value>
......
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