From 506239fb5532d3fca591a2f6cd6ef606040eb5f7 Mon Sep 17 00:00:00 2001 From: sheetal ghadge Date: Wed, 13 Sep 2023 16:39:46 +0530 Subject: [SO] Instantiate Service Without Resource Updated jinja template & unit test for service withoutt resource Issue-ID: TEST-405 Change-Id: I6c163b038dbd7fc7e3afbe12e5da21d1b5b7f5ea Signed-off-by: sheetal ghadge --- src/onapsdk/so/templates/deletion_service.json.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/onapsdk/so/templates/deletion_service.json.j2') diff --git a/src/onapsdk/so/templates/deletion_service.json.j2 b/src/onapsdk/so/templates/deletion_service.json.j2 index 1244e97..022c08e 100644 --- a/src/onapsdk/so/templates/deletion_service.json.j2 +++ b/src/onapsdk/so/templates/deletion_service.json.j2 @@ -14,7 +14,7 @@ "requestParameters": { "testApi": "GR_API", "aLaCarte": {{ a_la_carte | tojson }} - }{% if service_instance.sdc_service.has_vnfs %}, + }{% if service_instance.sdc_service.resources and service_instance.sdc_service.has_vnfs %}, {# the code below is needed to be refactored #} {# https://gitlab.com/Orange-OpenSource/lfn/onap/python-onapsdk/-/issues/133 #} "cloudConfiguration": { -- cgit 1.2.3-korg