buildinstall: Pick correct config with rootfs_size
If there are multiple matching configuration blocks, we should take the value that is defined in the last one, but only if it actually is there. That's how it works for other options. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
f59034b22d
commit
8065239e04
@ -77,11 +77,12 @@ class BuildinstallPhase(PhaseBase):
|
||||
bugurl = data.get('bugurl')
|
||||
if not data.get('nomacboot', True):
|
||||
nomacboot = False
|
||||
if "rootfs_size" in data:
|
||||
rootfs_size = data.get("rootfs_size")
|
||||
add_template.extend(data.get('add_template', []))
|
||||
add_arch_template.extend(data.get('add_arch_template', []))
|
||||
add_template_var.extend(data.get('add_template_var', []))
|
||||
add_arch_template_var.extend(data.get('add_arch_template_var', []))
|
||||
rootfs_size = data.get("rootfs_size")
|
||||
output_dir = os.path.join(output_dir, variant.uid)
|
||||
output_topdir = output_dir
|
||||
|
||||
|
@ -251,6 +251,7 @@ class TestBuildinstallPhase(PungiTestCase):
|
||||
'release_is_layered': False,
|
||||
'buildinstall_method': 'lorax',
|
||||
'lorax_options': [
|
||||
('^.*$', {'*': {}}),
|
||||
('^Server$', {
|
||||
'x86_64': {
|
||||
'bugurl': 'http://example.com',
|
||||
@ -265,6 +266,7 @@ class TestBuildinstallPhase(PungiTestCase):
|
||||
('^Client$', {
|
||||
'*': {'nomacboot': False}
|
||||
}),
|
||||
('^.*$', {'*': {}}),
|
||||
]
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user