Skip to content

Running a plan on a quality gate identifies changes, when in fact there a none #282

Description

@mpas

Terraform Version

1.9.8

Provider Version

0.16.14

Affected Resource(s)

Please list the resources as a list, for example:

  • sonarqube_qualitygate

Terraform Configuration Files

resource "sonarqube_qualitygate" "sonar_way_with_line_coverage" {
  name       = "SonarWay (C++/GCov Tuned Gate)"
  is_default = false

  condition {
    metric    = "new_technical_debt"
    op        = "GT"
    threshold = "5"
  }

  condition {
    metric    = "new_blocker_violations"
    op        = "GT"
    threshold = "0"
  }
}

Expected Behavior

As the gate is deployed I should not expect changes, when running a terraform plan. For a plan with a single condition this works but when I add a second condition I constantly see changes when a new plan is executed. The conditions seems to swapped (see picture)

Actual Behavior

What actually happened?
The gate has been deployed, but after a second run, for example a plan the conditions are mixed up

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
  2. terraform plan (expect no changes)

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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