aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornancylizi <li.zi30@zte.com.cn>2017-02-04 15:43:20 +0800
committernancylizi <li.zi30@zte.com.cn>2017-02-04 15:43:20 +0800
commit314b0193cacaba09073cefcb1d19e48f48301b5a (patch)
treee8c7c70b11167222e764a416cc9ee36c52040971
parent4fb454c59d38b7748b678d5a58dd13c409d34962 (diff)
Fix the bug "setDeletionPending cannot work"
Issue-id:TOSCA-201 Change-Id: Idf55da118d4fad3b544fc48f99ad74c563b8d77d Signed-off-by: nancylizi <li.zi30@zte.com.cn>
-rw-r--r--catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapperUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapperUtil.java b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapperUtil.java
index 3e494e20..abb890c2 100644
--- a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapperUtil.java
+++ b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/wrapper/PackageWrapperUtil.java
@@ -1,5 +1,5 @@
/**
- * Copyright 2016 ZTE Corporation.
+ * Copyright 2016-2017 ZTE Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -308,7 +308,7 @@ public class PackageWrapperUtil {
PackageMeta meta = new PackageMeta();
meta.setCsarId(packageData.getCsarId());
meta.setCreateTime(packageData.getCreateTime());
- meta.setDeletionPending(Boolean.getBoolean(packageData.getDeletionPending()));
+ meta.setDeletionPending(Boolean.valueOf(packageData.getDeletionPending()));
String packageUri =
packageData.getDownloadUri() + packageData.getName() + CommonConstant.CSAR_SUFFIX;
String packageUrl = getUrl(packageUri);