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:
parent
0768e46b91
commit
bd67c19612
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user