fix: Properly check for the balena-api label to inject the API key env vars

Change-type: patch
Signed-off-by: Pablo Carranza Velez <pablo@balena.io>
This commit is contained in:
Pablo Carranza Velez 2018-10-30 12:52:42 -07:00
parent be533a0ef6
commit d5094d8d3b

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); setEnvVariables('API_KEY', options.deviceApiKey);
} }