Merge pull request #783 from balena-io/fix-service-balena-apikey

fix: Properly check for the balena-api label to inject the API key env var
This commit is contained in:
Pablo Carranza Vélez 2018-10-31 13:44:08 -07:00 committed by GitHub
commit f29cbe23fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}