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:
jbjohnso 2013-04-03 20:57:18 +00:00
parent bd67c19612
commit c0e81dc8ad
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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});
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}