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

Crashing if apply wrong resource #261

Open
huy105 opened this issue Aug 16, 2024 · 1 comment
Open

Crashing if apply wrong resource #261

huy105 opened this issue Aug 16, 2024 · 1 comment

Comments

@huy105
Copy link

huy105 commented Aug 16, 2024

crash

Terraform Version

Terraform v1.8.0

Code

resource "sonarqube_project" "main_project" {
    name       = var.name
    project    = var.project_key
    visibility = var.visibility

    setting {
        key   = "sonar.demo"
        value = "[email protected]"
    }
}

data "sonarqube_qualityprofile" "main" {
    name     = "db2c015b-5bd7-470b-aad5-76935393c45d"
}

resource "sonarqube_qualityprofile_project_association" "main" {
    quality_profile = data.sonarqube_qualityprofile.main.name
    project         = sonarqube_project.main_project.project
    language        = data.sonarqube_qualityprofile.main
}

Steps to Reproduce

When apply this code data.sonarqube_qualityprofile.main is not an attribute. It making plugin crashed and can't do anything then. I have to remove statefile to fix this problem.

@huy105
Copy link
Author

huy105 commented Aug 18, 2024

sonarqube_project work if delete setting

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