VFModule To HeatTemplateUUID 75/86975/1
authorMerkel, Jeff <jeff.merkel@att.com>
Sun, 5 May 2019 15:14:39 +0000 (11:14 -0400)
committerBenjamin, Max (mb388a) <mb388a@us.att.com>
Sun, 5 May 2019 15:14:48 +0000 (11:14 -0400)
- Set existing Heat files on the vfModuleArtifact.

Change-Id: Ie01a7932115158dc974ab9ba89a8954a3e732e79
Issue-ID: SO-1846
Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
asdc-controller/src/main/java/org/onap/so/asdc/installer/heat/ToscaResourceInstaller.java

index 4e97b5f..1a80264 100644 (file)
@@ -1180,6 +1180,8 @@ public class ToscaResourceInstaller {
                     vfModuleArtifact.getArtifactInfo().getArtifactUUID());
             heatTemplate.setParameters(heatParam);
             vfModuleArtifact.setHeatTemplate(heatTemplate);
+        } else {
+            vfModuleArtifact.setHeatTemplate(existingHeatTemplate);
         }
     }
 
@@ -1208,6 +1210,8 @@ public class ToscaResourceInstaller {
                 heatEnvironment.setArtifactChecksum(MANUAL_RECORD);
             }
             vfModuleArtifact.setHeatEnvironment(heatEnvironment);
+        } else {
+            vfModuleArtifact.setHeatEnvironment(existingHeatEnvironment);
         }
     }
 
@@ -1232,7 +1236,8 @@ public class ToscaResourceInstaller {
                 heatFile.setArtifactChecksum(MANUAL_RECORD);
             }
             vfModuleArtifact.setHeatFiles(heatFile);
-
+        } else {
+            vfModuleArtifact.setHeatFiles(existingHeatFiles);
         }
     }