Fix 1582 : deploy juju units = number-of-instances 32/11032/1
authorendika <endika.aldecoa@ehu.eus>
Mon, 21 Jun 2021 16:55:07 +0000 (18:55 +0200)
committerendika <endika.aldecoa@ehu.eus>
Mon, 21 Jun 2021 16:55:07 +0000 (18:55 +0200)
Change-Id: I938715344294150ed99da719cae4efb0d1bf975a
Signed-off-by: endika <endika.aldecoa@ehu.eus>
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(