Commit 52f62ad1 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: slap_tool api requires reference on Remote Partition

parent 38f242e2
...@@ -15,7 +15,7 @@ remote_node = portal.compute_node_module.newContent( ...@@ -15,7 +15,7 @@ remote_node = portal.compute_node_module.newContent(
for i in range(partition_amount): for i in range(partition_amount):
computer_partition = remote_node.newContent( computer_partition = remote_node.newContent(
portal_type="Compute Partition", portal_type="Compute Partition",
title="slapremote%i" % i reference="slapremote%i" % i
) )
computer_partition.markFree() computer_partition.markFree()
computer_partition.validate() computer_partition.validate()
......
...@@ -35,7 +35,7 @@ if instance.getPortalType() == 'Slave Instance': ...@@ -35,7 +35,7 @@ if instance.getPortalType() == 'Slave Instance':
elif instance.getPortalType() == 'Software Instance': elif instance.getPortalType() == 'Software Instance':
new_partition = remote_node.newContent( new_partition = remote_node.newContent(
portal_type="Compute Partition", portal_type="Compute Partition",
title="slapmigration", reference="slapmigration",
) )
new_partition.markFree() new_partition.markFree()
new_partition.validate() new_partition.validate()
......
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