Commit ab87a9cd authored by Xavier Thompson's avatar Xavier Thompson

slapformat: Fix crash in specific code path

parent 14e132f0
......@@ -690,7 +690,7 @@ class Computer(object):
partition_ipv6_dict = self.interface.addIPv6Address(partition_index)
# Avoid leaking prefixlen in dumped data because it is not loaded
# otherwise format dumps a different result after the first run
del partition_ipv6_dict['prefixlen']
partition_ipv6_dict.pop('prefixlen', None)
partition.address_list.append(partition_ipv6_dict)
else:
# regenerate list of addresses
......
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