Skip to content

Updating Project Variable doesnt work #259

@Rainson12

Description

@Rainson12

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 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions