From 0346b192ee085525c4119fca02e9eab6037bfc5b Mon Sep 17 00:00:00 2001 From: VarunReddy Date: Tue, 25 Jul 2023 15:27:18 -0700 Subject: [PATCH] nit updated --- internal/pkg/ecs/ecs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/pkg/ecs/ecs.go b/internal/pkg/ecs/ecs.go index 17798849a80..3b14618489b 100644 --- a/internal/pkg/ecs/ecs.go +++ b/internal/pkg/ecs/ecs.go @@ -261,8 +261,7 @@ func (c Client) DecryptedSecrets(secrets []*ecs.ContainerSecret) ([]EnvVar, erro Name: secret.Name, Value: secretValue, }) - } - if parsed.Service == secretsmanager.Namespace { + } else if parsed.Service == secretsmanager.Namespace { secretValue, err := c.secretManager.GetSecretValue(secret.ValueFrom) if err != nil { return nil, err