2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Plugin should not return error in certain places because it will attempt to look at another plugin

This commit is contained in:
Victor Hu 2019-05-09 17:18:54 -04:00
parent bdff2ed39d
commit d80bda8eb4

View File

@ -2022,11 +2022,7 @@ sub copycd
{
#If they say to call it something unidentifiable, give up?
$callback->(
{
error => "The name specified ($distname) is not supported. Use the following format: rh*,pkvm*,centos*,fedora*,SL*,ol*", errorcode => [1]
}
);
print "DEBUG - [anaconda.pm] The name specified ($distname) is not supported for anaconda images, continue to another plugin...";
return;
}
@ -2151,14 +2147,10 @@ sub copycd
if ($arch eq "ppc") { $arch = "ppc64" }
}
# At this point, arch should have been detected from the .discinfo, if not, then we require the user to provide it.
# At this point, if arch is not provided and we cannot determine it, return
unless ($arch)
{
$callback->(
{
error => "ARCH not be detected, provide an OS ARCH using the -a option. (ppc64le, x86_64)", errorcode => [1]
}
);
print "DEBUG - [anaconda.pm] ARCH not detected, provided an OS ARCH using the -a option.";
return;
}