mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 06:07:55 +00:00
os build-config: Fix output file containing 'undefined' word since v12.9.4
Resolves: #1975 Change-type: patch
This commit is contained in:
parent
7aa1708f46
commit
74c6f8a627
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user