diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index c491c35ac..725f4c4ce 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)",errorcode=>1}); + $callback->({error => "No Templates found to support $distname($arch)",errorcode=>2}); return; } } diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 12333af50..74a7dec6a 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)",errorcode=>1}); + $output_handler->({error => "No Templates found to support $distname($arch)",errorcode=>2}); } } diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 38b675ea6..6986b7ad3 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)",errorcode=>1}); + $callback->({error => "No Templates found to support $distname($arch)",errorcode=>2}); return; } } diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 7b70ac0d7..fcad599c1 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)",errorcode=>1}); + $callback->({error => "No Templates found to support $distname($arch)",errorcode=>2}); return; } }