os build-config: Fix output file containing 'undefined' word since v12.9.4

Resolves: #1975
Change-type: patch
This commit is contained in:
Paulo Castro 2020-08-04 17:19:38 +01:00
parent 7aa1708f46
commit 74c6f8a627

View File

@ -91,7 +91,7 @@ export default class OsBuildConfigCmd extends Command {
await writeFile(options.output, JSON.stringify(config, null, 4)); await writeFile(options.output, JSON.stringify(config, null, 4));
console.info(`Config file ${params.image} created successfully.`); console.info(`Config file "${options.output}" created successfully.`);
} }
async buildConfig(image: string, deviceTypeSlug: string, advanced: boolean) { async buildConfig(image: string, deviceTypeSlug: string, advanced: boolean) {
@ -100,7 +100,7 @@ export default class OsBuildConfigCmd extends Command {
const { getManifest } = await import('../../utils/helpers'); const { getManifest } = await import('../../utils/helpers');
const deviceTypeManifest = await getManifest(image, deviceTypeSlug); const deviceTypeManifest = await getManifest(image, deviceTypeSlug);
await this.buildConfigForDeviceType(deviceTypeManifest, advanced); return this.buildConfigForDeviceType(deviceTypeManifest, advanced);
} }
async buildConfigForDeviceType( async buildConfigForDeviceType(