Commit a105879b authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slap/standalone: fix format with 0 partitions

we can have a case where written slapos.cfg has "partition_amount = 10"
(leftover from previous execution) and we call format(0), in this case,
we really want slapos.cfg function to be rewritten.

See merge request !557
parent 0af5fa7b
Pipeline #29159 failed with stage
in 0 seconds
......@@ -436,7 +436,7 @@ class StandaloneSlapOS(object):
self._base_directory = base_directory
self._shared_part_list = list(shared_part_list)
self._partition_forward_configuration = list(partition_forward_configuration)
self._partition_count = 0
self._partition_count = -1
self._partition_base_name = 'slappart'
self._ipv4_address = None
self._ipv6_address = None
......
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