1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 13:59:40 +02:00

fix(services): Empty environment variables are not maintained (#836)

This commit is contained in:
Glowbal 2017-05-05 06:25:48 +02:00 committed by Anthony Lapenna
parent 5b81b35bf8
commit 4ff7ee4e60
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ function ($scope, $state, Service, ServiceHelper, Volume, Network, ImageHelper,
function prepareEnvConfig(config, input) {
var env = [];
input.Env.forEach(function (v) {
if (v.name && v.value) {
if (v.name) {
env.push(v.name + "=" + v.value);
}
});