From d3b80e8fba476a15236c7c304df41495f63317bb Mon Sep 17 00:00:00 2001 From: claudio torres Date: Wed, 15 Jan 2025 17:09:32 -0300 Subject: [PATCH] fix: fix wifi_data.json when no information retrieved --- lib/agent/actions/logretrieval/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/agent/actions/logretrieval/index.js b/lib/agent/actions/logretrieval/index.js index 793b2c70b..25cbddc77 100644 --- a/lib/agent/actions/logretrieval/index.js +++ b/lib/agent/actions/logretrieval/index.js @@ -163,7 +163,7 @@ exports.start = (id, options, cb) => { wifiDataPath = join(exports.tmpdir, 'wifi_data.json'); retrieveDataWifi((txt) => { - let jsonInformation = ''; + let jsonInformation = ' '; if (txt !== '') { const txtParsed = JSON.parse(txt); jsonInformation = JSON.stringify(txtParsed, null, 2);