From: nancylizi
Date: Sat, 4 Feb 2017 07:43:20 +0000 (+0800)
Subject: Fix the bug "setDeletionPending cannot work"
X-Git-Tag: release/mercury~2
X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=314b0193cacaba09073cefcb1d19e48f48301b5a;p=vfc%2Fnfvo%2Fcatalog.git
Fix the bug "setDeletionPending cannot work"
Issue-id:TOSCA-201
Change-Id: Idf55da118d4fad3b544fc48f99ad74c563b8d77d
Signed-off-by: nancylizi
---
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);