2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 01:56:39 +00:00

Merge pull request #6295 from whowutwut/copycds_error

Add non zero return code to the error callback for copycds
This commit is contained in:
yangsong 2019-05-08 09:42:05 +08:00 committed by GitHub
commit dc8b845aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2024,7 +2024,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*"
error => "The name specified ($distname) is not supported. Use the following format: rh*,pkvm*,centos*,fedora*,SL*,ol*", errorcode => [1]
}
);
return;
@ -2143,7 +2143,7 @@ sub copycd
{
$callback->(
{
error => "Requested distribution architecture $arch, but media is $darch"
error => "Requested distribution architecture $arch, but media is $darch", errorcode => [1]
}
);
return;
@ -2156,7 +2156,7 @@ sub copycd
{
$callback->(
{
error => "ARCH not be detected, provide an OS ARCH using the -a option. (ppc64le, x86_64)"
error => "ARCH not be detected, provide an OS ARCH using the -a option. (ppc64le, x86_64)", errorcode => [1]
}
);
return;