diff options
author | 2017-03-01 17:01:39 +0800 | |
---|---|---|
committer | 2017-03-01 17:01:39 +0800 | |
commit | 40f14a360b080c804935ddfc277bf05c526ff9ee (patch) | |
tree | f32768a764e99609c3be50a51a6b37fd74829cdb /catalog-core/catalog-mgr/src/main/java | |
parent | f34ab88d68f04501b6c499cece5fdf1b1d0141a6 (diff) |
Modify the uploadPackage.v2.0.0release/mercury
Issue-ID:TOSCA-250
Change-Id: I7e1109fb42ec8c15e8f2e095443dda606171f0cc
Signed-off-by: nancylizi <li.zi30@zte.com.cn>
Diffstat (limited to 'catalog-core/catalog-mgr/src/main/java')
-rw-r--r-- | catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java index ae35659d..1f1e245f 100644 --- a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java +++ b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapper.java @@ -169,12 +169,12 @@ public class PackageWrapper { tempCsarPath, PackageWrapperUtil.getPackageFormat(packateDbData.getFormat())); LOG.info("Package parse success ! serviceTemplateId = " + serviceTemplateId); } catch (Exception e1) { - LOG.error("Parse package error ! "); - String packagePath = PackageWrapperUtil.getPackagePath(packageData.getCsarId()); - FileManagerFactory.createFileManager().delete(packagePath); - if (tempDirName != null) { - ToolUtil.deleteDir(new File(tempDirName)); - } + LOG.error("Parse package error ! Delete the package data from database"); + //String packagePath = PackageWrapperUtil.getPackagePath(packageData.getCsarId()); + //FileManagerFactory.createFileManager().delete(packagePath); + //if (tempDirName != null) { + //ToolUtil.deleteDir(new File(tempDirName)); + //} PackageManager.getInstance().deletePackage(packateDbData.getCsarId()); throw new Exception(e1); } |