Fixes bug 1489 by adding inline cloud-init to SOL006 VDUs 73/10573/2
authorgarciaale <agarcia@whitestack.com>
Wed, 31 Mar 2021 14:23:02 +0000 (11:23 -0300)
committerguzman <jmguzman@whitestack.com>
Tue, 24 Aug 2021 15:27:15 +0000 (17:27 +0200)
Change-Id: I881ecc20be02788f16aa9fdf9592523ae6840098
Signed-off-by: garciaale <agarcia@whitestack.com>
osm_im/im_translation.py

index 466026c..8abf942 100644 (file)
@@ -269,6 +269,8 @@ def _add_im_vdus_to_sol006_vnfd(im_vnfd, sol006_vnfd):
             vdu_descriptor["name"] = vdu["name"]
         if vdu.get("cloud-init-file"):
             vdu_descriptor["cloud-init-file"] = vdu["cloud-init-file"]
+        if vdu.get("cloud-init"):
+            vdu_descriptor["cloud-init"] = vdu["cloud-init"]
         if vdu.get("supplemental-boot-data"):
             vdu_descriptor["supplemental-boot-data"] = vdu["supplemental-boot-data"]
         if vdu.get("alarm"):