From a2205b8fab4c8725b5bbb82ff17f6d260987ec68 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 3 Apr 2013 20:55:13 +0000 Subject: [PATCH] Have copycds error set exit code on client git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15821 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 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; } }