Commit 6ff45304 by Alain Takoudjou

slapproxy: also return instance title and root-intance-title in partition information

1 parent 410dfb50
Pipeline #3912 for 6ff45304 skipped in 0 seconds
......@@ -99,6 +99,8 @@ def partitiondict2partition(partition):
slap_partition._need_modification = 0
slap_partition._instance_guid = '%s-%s' % (partition['computer_reference'], partition['reference'])
root_partition = getRootPartition(partition['reference'])
if partition['software_release']:
slap_partition._need_modification = 1
slap_partition._requested_state = partition['requested_state']
......@@ -113,6 +115,10 @@ def partitiondict2partition(partition):
slap_partition._parameter_dict['full_address_list'] = full_address_list
slap_partition._parameter_dict['slap_software_type'] = \
partition['software_type']
slap_partition._parameter_dict['instance_title'] = \
partition['partition_reference']
slap_partition._parameter_dict['root_instance_title'] = \
root_partition['partition_reference']
if partition['slave_instance_list'] is not None:
slap_partition._parameter_dict['slave_instance_list'] = \
xml_marshaller.xml_marshaller.loads(partition['slave_instance_list'])
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!