Skip to content

Commit 5e3c6c7

Browse files
authored
fix(function): secret env variables overriding env variables (#1627)
1 parent 4f8a3aa commit 5e3c6c7

File tree

2 files changed

+122
-188
lines changed

2 files changed

+122
-188
lines changed

scaleway/resource_function_namespace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func resourceScalewayFunctionNamespaceUpdate(ctx context.Context, d *schema.Reso
162162
}
163163

164164
if d.HasChanges("secret_environment_variables") {
165-
req.EnvironmentVariables = expandMapPtrStringString(d.Get("secret_environment_variables"))
165+
req.SecretEnvironmentVariables = expandFunctionsSecrets(d.Get("secret_environment_variables"))
166166
}
167167

168168
if _, err := api.UpdateNamespace(req, scw.WithContext(ctx)); err != nil {

0 commit comments

Comments
 (0)