From 325b3cedd4b17f49cf3bb16edb45a4d18624542e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 30 Apr 2013 18:53:14 +0000 Subject: [PATCH] Fix problem with esxi detection of image template availability git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16136 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 74a7dec6a..4069f4af9 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -4223,8 +4223,8 @@ sub copycd { unless ($found) { return; } #not our media if ($::XCATSITEVALS{osimagerequired}){ - my $haveimages=xCAT::SvrUtils->update_tables_with_templates($distname, $arch,"","",checkonly=>1); - unless ($haveimages) { + my ($nohaveimages,$errstr)=xCAT::SvrUtils->update_tables_with_templates($distname, $arch,"","",checkonly=>1); + if ($nohaveimages) { $output_handler->({error => "No Templates found to support $distname($arch)",errorcode=>2}); } }