mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
fix(disk_util): Fix layout inheritance in config verification.
This commit is contained in:
parent
3546256597
commit
ba532952b1
@ -79,12 +79,13 @@ def LoadPartitionConfig(options):
|
||||
for int_key in integer_layout_keys.intersection(part_keys):
|
||||
part[int_key] = int(part[int_key])
|
||||
|
||||
if base:
|
||||
part_base = base.get(part_num, {})
|
||||
part_keys.update(part_base.iterkeys())
|
||||
|
||||
if part.get('type', None) == 'blank':
|
||||
continue
|
||||
|
||||
if base:
|
||||
part_keys.update(base.iterkeys())
|
||||
|
||||
missing_keys = required_layout_keys - part_keys
|
||||
if missing_keys:
|
||||
raise InvalidLayout('Missing items in partition %s %s: %s' %
|
||||
|
Loading…
x
Reference in New Issue
Block a user