From: endika Date: Mon, 21 Jun 2021 16:55:07 +0000 (+0200) Subject: Fix 1582 : deploy juju units = number-of-instances X-Git-Tag: v10.0.1^0 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FLCM.git;a=commitdiff_plain;h=85d73a6a9c2d5a01ab010eed6079f243b787e72a Fix 1582 : deploy juju units = number-of-instances Change-Id: I938715344294150ed99da719cae4efb0d1bf975a Signed-off-by: endika (cherry picked from commit 76ba923c9c5696a09ad9b2ac10ff7f5660078549) --- diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index cb281e4..6a4a8e6 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -2390,9 +2390,7 @@ class NsLcm(LcmBase): deploy_params_vdu["OSM"] = get_osm_params( db_vnfr, vdu_id, vdu_count_index=0 ) - vdud_count = get_vdu_profile(vnfd, vdu_id).get( - "max-number-of-instances", 1 - ) + vdud_count = get_number_of_instances(vnfd, vdu_id) self.logger.debug("VDUD > {}".format(vdud)) self.logger.debug(