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:
commit
dc8b845aef
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user