From c0e81dc8ad99ec90215dd341262b11e4fb71c2fb Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 3 Apr 2013 20:57:18 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/anaconda.pm | 2 +- xCAT-server/lib/xcat/plugins/esx.pm | 2 +- xCAT-server/lib/xcat/plugins/sles.pm | 2 +- xCAT-server/lib/xcat/plugins/windows.pm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; } }