mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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; | ||||
| 	   } | ||||
|     } | ||||
|   | ||||
| @@ -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}); | ||||
|           } | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
| 	   } | ||||
|     } | ||||
|   | ||||
| @@ -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; | ||||
| 	   } | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user