refactor into getServiceConfig
This commit is contained in:
@@ -51,8 +51,7 @@ async function start(existingInfra) {
|
||||
|
||||
debug('start: re-creating container');
|
||||
|
||||
const servicesConfig = await services.getConfig();
|
||||
const serviceConfig = servicesConfig['sftp'] || {};
|
||||
const serviceConfig = await services.getServiceConfig('sftp');
|
||||
const tag = infra.images.sftp.tag;
|
||||
const memoryLimit = serviceConfig.memoryLimit || exports.DEFAULT_MEMORY_LIMIT;
|
||||
const memory = await system.getMemoryAllocation(memoryLimit);
|
||||
|
||||
Reference in New Issue
Block a user