config generate: Fix "Application is ambiguous" when app slug is used

Connects-to: #1893
Change-type: patch
This commit is contained in:
Paulo Castro 2020-10-25 16:52:31 +00:00
parent 116ab1fbc1
commit 709f009f9b

View File

@ -68,7 +68,7 @@ export async function generateBaseConfig(
};
const config = (await getBalenaSdk().models.os.getConfig(
application.app_name,
application.slug,
options,
)) as ImgConfig & { apiKey?: string };
// os.getConfig always returns a config for an app