Commit 6b4bc29e authored by Xavier Thompson's avatar Xavier Thompson

slapos_slap_tool: Support updating partitions with capabilities

parent 45f1ef7b
......@@ -85,6 +85,11 @@ for send_partition in compute_node_dict['partition_list']:
partition.validate(comment="Reactivated by slapformat")
if partition.getReference() != send_partition['reference']:
partition.edit(reference=send_partition['reference'])
send_capability_list = send_partition.get('capability_list') or []
if partition.getSubjectList() != send_capability_list:
partition.edit(subject=send_capability_list)
network_interface = send_partition['tap']['name']
compareAndUpdateAddressList(partition, send_partition['address_list'], {'network_interface': network_interface})
tap_addr_list = []
......
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