diff options
author | Brinda Santh Muthuramalingam <brindasanth@in.ibm.com> | 2019-08-29 14:29:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-08-29 14:29:03 +0000 |
commit | 4c208c725a6d7bb72f306708cd5b617fd73d3818 (patch) | |
tree | 0a893545c21201a243b3c014baab5c56f5d3fb98 /cds-ui/client/src/app/feature-modules | |
parent | b4151a70dfa7660de27ff467461769808c45871d (diff) | |
parent | 6dcb5ba8e64e8e353e920ed18f3c4b42e35743f2 (diff) |
Merge "Fixed defect CCSDK-1610"
Diffstat (limited to 'cds-ui/client/src/app/feature-modules')
-rw-r--r-- | cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts index 5a0b96c14..35643ee62 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts @@ -148,16 +148,11 @@ export class MetadataComponent implements OnInit { this.loader.showLoader(); 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"); + let tempNodeData = JSON.parse(fileNode.data); + tempNodeData.metadata = this.blueprint.metadata; + fileNode.data = JSON.stringify(tempNodeData, null, "\t"); } }); let blueprintState = { |