fix apps.install insane arg list

This commit is contained in:
Girish Ramakrishnan
2016-06-03 23:22:38 -07:00
parent bc823b4a75
commit e2848d3e08
3 changed files with 32 additions and 11 deletions

View File

@@ -667,10 +667,15 @@ function installAppBundle(callback) {
debug('autoInstall: installing %s at %s', appstoreId, appInfo.location);
apps.install(uuid.v4(), appstoreId, result.body.manifest, appInfo.location,
appInfo.portBindings || null, appInfo.accessRestriction || null,
null /* icon */, null /* cert */, null /* key */, 0 /* default mem limit */,
null /* altDomain */, { userId: null, username: 'autoinstaller' }, iteratorCallback);
var data = {
appStoreId: appstoreId,
manifest: result.body.manifest,
location: appInfo.location,
portBindings: appInfo.portBindings || null,
accessRestriction: appInfo.accessRestriction || null,
};
apps.install(uuid.v4(), data, { userId: null, username: 'autoinstaller' }, iteratorCallback);
});
}, function (error) {
if (error) debug('autoInstallApps: ', error);