1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

utils: simply and robustify tell_source

This is simpler if we just always lowercase $iso, plus it saves
us when somebody (*cough*) messes up the casing.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-10-28 11:57:33 -07:00
parent b7a3d9ee1b
commit 31826f7938

View File

@ -1230,13 +1230,11 @@ sub tell_source {
# except Workstation and Server, there are no graphical differences
# between various spins and isos.
my $iso = get_var('SUBVARIANT');
if ($iso eq 'Workstation' or $iso eq 'Server') {
$iso = lc($iso);
}
elsif ($iso eq 'AtomicHost') {
$iso = lc($iso);
if ($iso eq 'atomichost') {
$iso = 'atomic';
}
elsif ($iso eq 'Silverblue') {
elsif ($iso eq 'silverblue') {
$iso = 'workstation';
}
else {