Fix 1582 : deploy juju units = number-of-instances 38/11038/1 v10.0.1
authorendika <endika.aldecoa@ehu.eus>
Mon, 21 Jun 2021 16:55:07 +0000 (18:55 +0200)
committeradecoa <endika.aldecoa@ehu.eus>
Thu, 24 Jun 2021 14:55:59 +0000 (16:55 +0200)
Change-Id: I938715344294150ed99da719cae4efb0d1bf975a
Signed-off-by: endika <endika.aldecoa@ehu.eus>
(cherry picked from commit 76ba923c9c5696a09ad9b2ac10ff7f5660078549)

osm_lcm/ns.py

index cb281e4..6a4a8e6 100644 (file)
@@ -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(