Send provider field with cloudron config

This commit is contained in:
Johannes Zellner
2015-12-29 10:53:22 +01:00
parent 07e322df96
commit 8b1d3e5fba

View File

@@ -287,6 +287,9 @@ function getConfig(callback) {
// TODO provide that number from the appstore
var memory = bytes(result.size) || 0;
// FIXME we should have a separate flag to indicate caas
var provider = result.region === null ? null : 'caas';
settings.getCloudronName(function (error, cloudronName) {
if (error) return callback(new CloudronError(CloudronError.INTERNAL_ERROR, error));
@@ -307,6 +310,7 @@ function getConfig(callback) {
region: result.region,
size: result.size,
memory: memory,
provider: provider,
cloudronName: cloudronName
});
});