diff options
author | 2017-10-18 10:54:45 +0800 | |
---|---|---|
committer | 2017-10-18 11:02:09 +0800 | |
commit | a851bdb93648e5e9935fd119498a1b3d80064de2 (patch) | |
tree | eed9c95927a953437b2dd1a6280a7ae03a897dfc | |
parent | e5207f9539bbbe54cb26344af69a58521cbcdec3 (diff) |
Fix vfc-catalog query vnf package info
Change-Id: If6dd008199795ab808acd5c4995b843476708b5f
Issue-ID: VFC-539
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r-- | catalog/packages/nf_package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/catalog/packages/nf_package.py b/catalog/packages/nf_package.py index 7e9336bb..5b4a9a76 100644 --- a/catalog/packages/nf_package.py +++ b/catalog/packages/nf_package.py @@ -208,6 +208,9 @@ class NfPackage(object): def get_csar(self, csar_id): pkg_info = {} nf_pkg = VnfPackageModel.objects.filter(vnfPackageId=csar_id) + if not nf_pkg: + nf_pkg = VnfPackageModel.objects.filter(vnfdId=csar_id) + if nf_pkg: pkg_info["vnfdId"] = nf_pkg[0].vnfdId pkg_info["vnfPackageId"] = nf_pkg[0].vnfPackageId |