Add dockerDataDisk to disks response

This commit is contained in:
Girish Ramakrishnan
2019-08-19 13:50:44 -07:00
parent 2b484c0382
commit b301e5b151
6 changed files with 143 additions and 93 deletions

View File

@@ -21,6 +21,7 @@ let assert = require('assert'),
cloudron = require('../cloudron.js'),
CloudronError = cloudron.CloudronError,
custom = require('../custom.js'),
disks = require('../disks.js'),
HttpError = require('connect-lastmile').HttpError,
HttpSuccess = require('connect-lastmile').HttpSuccess,
updater = require('../updater.js'),
@@ -51,7 +52,7 @@ function getConfig(req, res, next) {
}
function getDisks(req, res, next) {
cloudron.getDisks(function (error, result) {
disks.getDisks(function (error, result) {
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, result));
});