Have copycds error set exit code on client

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15823 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-04-03 20:57:08 +00:00
parent 0768e46b91
commit bd67c19612
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)"});
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>1});
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)"});
$output_handler->({error => "No Templates found to support $distname($arch)",errorcode=>1});
}
}

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)"});
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>1});
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)"});
$callback->({error => "No Templates found to support $distname($arch)",errorcode=>1});
return;
}
}