diff --git a/src/compose/utils.ts b/src/compose/utils.ts index 6dff295d..11b84271 100644 --- a/src/compose/utils.ts +++ b/src/compose/utils.ts @@ -333,7 +333,7 @@ export function addFeaturesFromLabels( } } - if (checkTruthy('io.balena.features.balena-api')) { + if (checkTruthy(service.config.labels['io.balena.features.balena-api'])) { setEnvVariables('API_KEY', options.deviceApiKey); }