Use a different error code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15824 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
bd67c19612
commit
c0e81dc8ad
@ -2075,7 +2075,7 @@ sub copycd
|
||||
if ($::XCATSITEVALS{osimagerequired}){
|
||||
my ($nohaveimages,$errstr) = xCAT::SvrUtils->update_tables_with_templates($distname, $arch,$path,$osdistroname,checkonly=>1);
|
||||
if ($nohaveimages) {
|
||||
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>1});
|
||||
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>2});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -4225,7 +4225,7 @@ sub copycd {
|
||||
if ($::XCATSITEVALS{osimagerequired}){
|
||||
my $haveimages=xCAT::SvrUtils->update_tables_with_templates($distname, $arch,"","",checkonly=>1);
|
||||
unless ($haveimages) {
|
||||
$output_handler->({error => "No Templates found to support $distname($arch)",errorcode=>1});
|
||||
$output_handler->({error => "No Templates found to support $distname($arch)",errorcode=>2});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1332,7 +1332,7 @@ sub copycd
|
||||
if ($::XCATSITEVALS{osimagerequired}){
|
||||
my ($nohaveimages,$errstr) = xCAT::SvrUtils->update_tables_with_templates($distname, $arch,$path,$osdistroname,checkonly=>1);
|
||||
if ($nohaveimages) {
|
||||
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>1});
|
||||
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>2});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -638,7 +638,7 @@ sub copycd
|
||||
if ($::XCATSITEVALS{osimagerequired}){
|
||||
my ($nohaveimages,$errstr) = xCAT::SvrUtils->update_tables_with_templates($distname, $arch,$path,$osdistroname,checkonly=>1);
|
||||
if ($nohaveimages) {
|
||||
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>1});
|
||||
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>2});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user