Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Fixes PaloAltoNetworks/minemeld-webui#47 #49

Merged
merged 1 commit into from
Oct 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/app/config/configexport.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,17 @@ export class ConfigureExportController {
if (currentNode.deleted) {
return;
}
oconfig[currentNode.name] = currentNode.properties;
oconfig[currentNode.name] = angular.copy(currentNode.properties);

delete oconfig[currentNode.name]['node_type'];

if (typeof oconfig[currentNode.name].inputs !== 'undefined' && !(oconfig[currentNode.name].inputs instanceof Array)) {
delete oconfig[currentNode.name]['inputs'];
}
});

this.config = jsyaml.safeDump(oconfig);
this.config = jsyaml.safeDump({
nodes: oconfig
});
}
}