Commit 8f392e0a authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

slapproxy: Support keys with NULL in slave instance

Just like reference implementation support empty keys.

/cc @rafael 

This makes slapproxy behave the same way as SlapOS Master for empty keys while requesting slaves.

/reviewed-on nexedi/slapos.core!96
parent b7f58c64
......@@ -689,8 +689,7 @@ def requestSlave(software_release, software_type, partition_reference, partition
new_slave['slave_reference'] = slave_reference
for key in partition_parameter_kw:
if partition_parameter_kw[key] is not None:
new_slave[key] = partition_parameter_kw[key]
new_slave[key] = partition_parameter_kw[key]
# Add slave to partition slave_list if not present else replace information
slave_instance_list = partition['slave_instance_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