Revert "Add hack to convert addon in manifest"

This reverts commit b01fb43e99.

Hack not needed now that cloudrons have migrated
This commit is contained in:
Girish Ramakrishnan
2015-04-13 13:41:06 -07:00
parent d8ac0330e8
commit ea2560feea
-11
View File
@@ -72,17 +72,6 @@ function postProcess(result) {
result.manifest = safe.JSON.parse(result.manifestJson);
delete result.manifestJson;
// remove this hack after staging cloudron has moved
if (result.manifest.addons) {
// convert addon from array to object
if (util.isArray(result.manifest.addons)) {
var addons = result.manifest.addons;
delete result.manifest.addons;
result.manifest.addons = { };
addons.forEach(function (addon) { result.manifest.addons[addon] = { } });
}
}
assert(result.hostPorts === null || typeof result.hostPorts === 'string');
assert(result.environmentVariables === null || typeof result.environmentVariables === 'string');