Skip to content
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
14 changes: 10 additions & 4 deletions src/cli/iofog.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,11 @@ async function _getHalHardwareInfo(obj) {

logger.info("Parameters" + JSON.stringify(uuidObj));

const info = await FogService.getHalHardwareInfo(uuidObj, {}, true);
logger.info(JSON.stringify(info, null, 2));
const data = await FogService.getHalHardwareInfo(uuidObj, {}, true);
if (data.info) {
data.info = JSON.parse(data.info);
}
logger.info(JSON.stringify(data, null, 2));
logger.info('Hardware info has been retrieved successfully.')
}

Expand All @@ -371,8 +374,11 @@ async function _getHalUsbInfo(obj) {

logger.info("Parameters" + JSON.stringify(uuidObj));

const info = await FogService.getHalHardwareInfo(uuidObj, {}, true);
logger.info(JSON.stringify(info, null, 2));
const data = await FogService.getHalUsbInfo(uuidObj, {}, true);
if (data.info) {
data.info = JSON.parse(data.info);
}
logger.info(JSON.stringify(data, null, 2));
logger.info('Usb info has been retrieved successfully.')
}

Expand Down