diff --git a/lib/agent/actions/wipe/wipe.js b/lib/agent/actions/wipe/wipe.js index 0d6e1fee8..de940ccf8 100644 --- a/lib/agent/actions/wipe/wipe.js +++ b/lib/agent/actions/wipe/wipe.js @@ -3,9 +3,6 @@ const { join } = require('path'); const { exec } = require('child_process'); const os = require('os'); const async = require('async'); -const common = require('../../common'); - -const logger = common.logger.prefix('wipejs'); const osName = process.platform.replace('win32', 'windows').replace('darwin', 'mac'); // eslint-disable-next-line import/no-dynamic-require @@ -206,8 +203,8 @@ exports.fetch_dirs = (items, toErase, toKill, cred, cb) => { if (toErase.length > 0 && toErase[0] !== '') { dirsToWipe = dirsToWipe.concat(toErase); } const jsonDirs = {}; - jsonDirs.dirs_to_wipe = dirsToWipe; - jsonDirs.dirs_to_wipe_keep = dirsToWipeKeep; + jsonDirs.dirsToWipe = dirsToWipe; + jsonDirs.dirsToWipeKeep = dirsToWipeKeep; if (toKill.length === 0 || toKill[0] === '') { return cb(null, jsonDirs); } @@ -220,4 +217,4 @@ exports.wipeout = (cb) => { exec(cmd, (err, stdout) => { cb(err, cmd + stdout); }); -}; \ No newline at end of file +};