From 14df46b7b0166c05af9056ba71f1b6bac05e4f2d Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Mon, 1 Jun 2020 09:38:11 -0700 Subject: [VVP] bug fix for empty project code Issue-ID: VVP-419 Change-Id: Ic65674f2ee924f43b7ba6d8cc63ee686723f8fa5 Signed-off-by: stark, steven --- onap-client/etc/payloads/catalog_service.jinja | 4 +++- onap-client/setup.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/onap-client/etc/payloads/catalog_service.jinja b/onap-client/etc/payloads/catalog_service.jinja index 51aec40..a692888 100644 --- a/onap-client/etc/payloads/catalog_service.jinja +++ b/onap-client/etc/payloads/catalog_service.jinja @@ -30,7 +30,9 @@ "requirements": {}, "deploymentArtifacts": {}, "componentType": "SERVICE", + {% if project_code != '' %} "projectCode": "{{project_code}}", + {% endif %} "componentInstances": [], "properties": [], "attributes": [], @@ -42,4 +44,4 @@ "serviceType": "{{service_type}}", "serviceRole": "{{service_role}}", "namingPolicy": "{{naming_policy}}" -} \ No newline at end of file +} diff --git a/onap-client/setup.py b/onap-client/setup.py index a813913..8e4d9aa 100644 --- a/onap-client/setup.py +++ b/onap-client/setup.py @@ -47,7 +47,7 @@ for file in os.listdir("etc/payloads"): setuptools.setup( name="onap-client", - version="0.6.2", + version="0.6.3", author="Steven Stark", author_email="steven.stark@att.com", description="Python API wrapper for ONAP applications", -- cgit 1.2.3-korg