make task args an object and put it in eventlog

This commit is contained in:
Girish Ramakrishnan
2018-11-30 14:57:24 -08:00
parent f39ce20580
commit c72ea91743
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ function postProcess(result) {
assert.strictEqual(typeof result, 'object');
assert(result.argsJson === null || typeof result.argsJson === 'string');
result.args = safe.JSON.parse(result.argsJson);
result.args = safe.JSON.parse(result.argsJson) || {};
delete result.argsJson;
}