mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	bug 13777: propagate snapshot packaging failures up. Reviewed-By: Anthony
This commit is contained in:
		
							parent
							
								
									0341d00082
								
							
						
					
					
						commit
						3d74932a85
					
				| @ -1254,6 +1254,8 @@ public class VirtualMachineMO extends BaseMO { | ||||
| 					        String result = command.execute(); | ||||
| 					        if(result == null) { | ||||
| 					            success = true; | ||||
| 					        } else { | ||||
| 					            s_logger.error("failed to execute command: " + command.toString()); | ||||
| 					        } | ||||
| 						} | ||||
| 					} | ||||
| @ -1270,6 +1272,7 @@ public class VirtualMachineMO extends BaseMO { | ||||
| 					 | ||||
| 					if(!success) { | ||||
| 					    new File(exportDir + File.separator + exportName + ".ova").delete(); | ||||
| 					    throw new Exception("Unable to finish the whole process to package as a OVA file"); | ||||
| 					}  | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user