Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Project Variable doesnt work #259

Open
Rainson12 opened this issue Jun 26, 2023 · 0 comments
Open

Updating Project Variable doesnt work #259

Rainson12 opened this issue Jun 26, 2023 · 0 comments

Comments

@Rainson12
Copy link

When trying to update a variable that exists multiple times an error is returned:
GitLabApiClient.GitLabException: '{"message":"There are multiple variables with provided parameters. Please use 'filter[environment_scope]'"}'. This issue occurs even when the environmentScope is set like:
await gitlabClient.Projects.UpdateVariableAsync(project.Id, new() { Key = rotation.AccessKeyIdVariableName, EnvironmentScope = rotation.Environment, Value = newKey.AccessKey.AccessKeyId });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant