Commit da036539 authored by Łukasz Nowak's avatar Łukasz Nowak

slapproxy: Add missing instance parameters

slapproxy, just like reference SlapOS Master, has to transmit important
partition parameters, in order to really support all features expected by the
software releases.
parent 425f5bb7
...@@ -85,6 +85,13 @@ def partitiondict2partition(partition): ...@@ -85,6 +85,13 @@ def partitiondict2partition(partition):
partition['partition_reference'] partition['partition_reference']
slap_partition._parameter_dict['root_instance_title'] = \ slap_partition._parameter_dict['root_instance_title'] = \
root_partition['partition_reference'] root_partition['partition_reference']
slap_partition._parameter_dict['slap_computer_id'] = \
partition['computer_reference']
slap_partition._parameter_dict['slap_computer_partition_id'] = \
partition['reference']
slap_partition._parameter_dict['slap_software_release_url'] = \
partition['software_release']
if partition['slave_instance_list'] is not None: if partition['slave_instance_list'] is not None:
slap_partition._parameter_dict['slave_instance_list'] = \ slap_partition._parameter_dict['slave_instance_list'] = \
loads(partition['slave_instance_list'].encode('utf-8')) loads(partition['slave_instance_list'].encode('utf-8'))
......
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