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
This commit is contained in:
		@@ -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});
 | 
			
		||||
          }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user