1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 14:29:40 +02:00

fix(service-details): fix an issue where secret target would be overwritten (#964)

This commit is contained in:
Anthony Lapenna 2017-06-29 08:37:05 +02:00 committed by GitHub
parent 1168e94534
commit 4adedf9436
2 changed files with 4 additions and 2 deletions

View file

@ -222,7 +222,9 @@ function ($q, $scope, $state, Service, ServiceHelper, SecretHelper, SecretServic
var secrets = [];
angular.forEach(input.Secrets, function(secret) {
if (secret.model) {
secrets.push(SecretHelper.secretConfig(secret.model));
var s = SecretHelper.secretConfig(secret.model);
s.File.Name = s.SecretName;
secrets.push(s);
}
});
config.TaskTemplate.ContainerSpec.Secrets = secrets;