Fixed bug CCSDK-1402 34/90234/1
authorArundathi Patil <arundpil@in.ibm.com>
Thu, 20 Jun 2019 14:41:08 +0000 (20:11 +0530)
committerArundathi Patil <arundpil@in.ibm.com>
Thu, 20 Jun 2019 14:41:30 +0000 (20:11 +0530)
fixed defect ccsdk-1402

Issue-ID: CCSDK-1402
Change-Id: Ib654486f15b5a4b22ecdee355cf8a64af5e717d1
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts

index 609aaca..0792c44 100644 (file)
@@ -98,7 +98,13 @@ export class MetadataComponent implements OnInit {
   UploadMetadata() {
     this.metadata = Object.assign({}, this.CBAMetadataForm.value);
     this.blueprint.metadata = this.metadata;
-
+    if( this.blueprint && 
+        this.blueprint['topology_template'] && 
+        this.blueprint['topology_template'].workflows && 
+        this.blueprint['topology_template'].workflows['resource-assignment'] &&
+        this.blueprint['topology_template'].workflows['resource-assignment'].name) {
+          delete this.blueprint['topology_template'].workflows['resource-assignment'].name;
+      }
     this.filesData.forEach((fileNode) => {
       if (fileNode.name.includes(this.blueprintName) && fileNode.name == this.entryDefinition) {
         fileNode.data = JSON.stringify(this.blueprint, null, "\t");