Skip to content

Commit

Permalink
Fix: Inventory export now fills in optional fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrho committed Dec 11, 2024
1 parent ad2293b commit 50d6811
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion jccm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "jccm",
"productName": "Juniper Cloud Connection Manager",
"description": "Juniper Cloud Connection Manager",
"version": "1.2.12",
"version": "1.2.13",
"main": ".webpack/main",
"scripts": {
"start": "pkill -9 node; nodemon --watch ./src --ext js,json --ignore ./src/Frontend/ --exec 'electron-forge start'",
Expand Down
14 changes: 9 additions & 5 deletions jccm/src/Frontend/Layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,13 @@ export default () => {
port: 'port',
username: 'username',
password: 'password',
'facts.hardwareModel': 'hardware model',
'facts.osName': 'os name',
'facts.osVersion': 'os version',
'facts.serialNumber': 'serial number',
'facts.hostName': 'host name',
'facts.systemInformation.hardwareModel': 'hardware model',
'facts.systemInformation.osName': 'os name',
'facts.systemInformation.osVersion': 'os version',
'facts.systemInformation.serialNumber': 'serial number',
'facts.systemInformation.hostName': 'host name',
'facts.routeSummaryInformation.routerId': 'router id',
'facts.interface.name': 'interface name',
};

// Create columnOrder for consistency and ordering in the Excel file
Expand All @@ -264,6 +266,8 @@ export default () => {
}
});

console.log('>>>> inventoryWithFacts:', inventoryWithFacts);

const orderedData = inventoryWithFacts.map((item) => {
const orderedRow = {};
columnOrder.forEach((key) => {
Expand Down

0 comments on commit 50d6811

Please sign in to comment.