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

severity for rule is deprecated now for SonarQube since v10.2 #262

Open
ivanthejedy opened this issue Aug 19, 2024 · 0 comments
Open

severity for rule is deprecated now for SonarQube since v10.2 #262

ivanthejedy opened this issue Aug 19, 2024 · 0 comments

Comments

@ivanthejedy
Copy link

Hi there,

Terraform Version

OpenTofu v1.7.3
on linux_amd64

Affected Resource(s)

  • sonarqube_qualityprofile_activate_rule

Terraform Configuration Files

resource "sonarqube_qualityprofile_activate_rule" "act-test01" {
  key = sonarqube_qualityprofile.test01.id
  rule     = "c:S3805"
}

Expected Behavior

The rule should be activated.

Actual Behavior

╷
│ Error: resourceSonarqubeQualityProfileRuleCreate: Failed to delete quality profile: API returned an error: Value of parameter 'severity' () must be one of: [INFO, MINOR, MAJOR, CRITICAL, BLOCKER]
│
│   with sonarqube_qualityprofile_activate_rule.act-test01,
│   on main.tf line 166, in resource "sonarqube_qualityprofile_activate_rule" "act-test01":
│  166: resource "sonarqube_qualityprofile_activate_rule" "act-test01" {

References

Deprecated features
According to the provider documentation severity is optional

@ivanthejedy ivanthejedy changed the title severity for activate_rule is depricated. severity for rule is deprecated now for SonarQube since v10.2 Aug 19, 2024
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