mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +00:00
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:
parent
be533a0ef6
commit
d5094d8d3b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user