return an empty tag array instead of null

This commit is contained in:
Johannes Zellner
2019-04-15 14:42:17 +02:00
parent 996c838320
commit e23fd5e3c5

View File

@@ -97,7 +97,7 @@ function postProcess(result) {
delete result.restoreConfigJson;
assert(result.tagsJson === null || typeof result.tagsJson === 'string');
result.tags = safe.JSON.parse(result.tagsJson) || null;
result.tags = safe.JSON.parse(result.tagsJson) || [];
delete result.tagsJson;
assert(result.hostPorts === null || typeof result.hostPorts === 'string');