diskimage-builder/diskimage_builder/block_device
Yolanda Robla 96504a4de0 Use OrderedDict for partitions instead of simple dictionary
The order of the partitions is important, it needs to be preserved.
If using a simple dict, this is not happening. As a consequence,
checks like 'primary partition being first' are failing because the
dictionary sorts the partitions randomly.
Switched to OrderedDict solved the problem, as it preserves the
ordering it gets from the yaml blob.

Change-Id: Icfa9bd95ffd0203d7c3f6af95de3a6f848c2a954
2017-03-07 15:55:20 +01:00
..
level0 Refactor: block-device handling (partitioning) 2017-01-24 19:59:10 +00:00
level1 Use OrderedDict for partitions instead of simple dictionary 2017-03-07 15:55:20 +01:00
tests Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
__init__.py Refactor: block-device handling (partitioning) 2017-01-24 19:59:10 +00:00
blockdevice.py Refactor: block-device partitioning cleanup 2017-03-07 18:43:09 +11:00
blockdevicesetupexception.py Refactor: block-device handling (partitioning) 2017-01-24 19:59:10 +00:00
utils.py Refactor: block-device handling (partitioning) 2017-01-24 19:59:10 +00:00