diff options
author | Dan Timoney <dtimoney@att.com> | 2019-06-25 18:54:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-06-25 18:54:49 +0000 |
commit | eba8ca3300290460f3df5e984b6de92d06de222f (patch) | |
tree | ee02d95efee23689a459697831a9a2a9fbb141a7 /cds-ui/client/src/app/feature-modules | |
parent | 711bf3c4cab58ee1c2258fe8e50342a0c2187442 (diff) | |
parent | 6b374664f4c49570b75e4d2fe6f3a4f6b327d56c (diff) |
Merge "Fixed bug CCSDK-1402"
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 | 8 |
1 files changed, 7 insertions, 1 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 609aacae7..0792c4478 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 @@ -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"); |