diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index fec51667f..c491c35ac 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -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; } } diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index ff48566b7..12333af50 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -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}); } } diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 0e957f932..38b675ea6 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -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; } } diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 603e427b5..7b70ac0d7 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -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; } }