[Cloud] Revert hardcoded cloud id (#34860)

Partially revert change introduced in aff8c69deb
This commit is contained in:
Søren Louv-Jansen 2019-04-10 15:47:28 +02:00 committed by GitHub
parent b7b584c2af
commit 8ab483a7e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,10 +14,9 @@ export const cloud = kibana => {
uiExports: {
injectDefaultVars(server, options) {
options.id = 'test-cloud-id';
return {
isCloudEnabled: !!options.id,
cloudId: options.id,
cloudId: options.id
};
},
},
@ -39,9 +38,9 @@ export const cloud = kibana => {
init(server) {
const config = server.config().get(`xpack.cloud`);
server.expose('config', {
isCloudEnabled: !!config.id,
isCloudEnabled: !!config.id
});
server.usage.collectorSet.register(getCloudUsageCollector(server));
},
}
});
};