Commit 8c8a57e4 authored by Romain Courteaud's avatar Romain Courteaud

Reactivate all inactivated partitions

parent 78857dc5
......@@ -100,6 +100,9 @@ for send_partition in computer_dict[\'partition_list\']:\n
partition = context.newContent(portal_type=\'Computer Partition\')\n
partition.validate()\n
partition.markFree()\n
elif partition.getSlapState() == \'inactive\':\n
# Reactivate partition\n
partition.markFree()\n
partition.edit(reference=send_partition[\'reference\'])\n
network_interface = send_partition[\'tap\'][\'name\']\n
compareAndUpdateAddressList(partition, send_partition[\'address_list\'], {\'network_interface\': network_interface})\n
......
569
\ No newline at end of file
570
\ 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