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

Instance file upload provider error if instance running = false #164

Open
breml opened this issue Nov 19, 2024 · 0 comments
Open

Instance file upload provider error if instance running = false #164

breml opened this issue Nov 19, 2024 · 0 comments

Comments

@breml
Copy link
Collaborator

breml commented Nov 19, 2024

The following Terraform configuration leads to inconsistent results in the Terraform provider:

Config:

resource "incus_instance" "instance1" {
  name    = "%s"
  image   = "%s"
  running = false

  file {
    source_path        = "../acctest/fixtures/test-file.txt"
    target_path        = "/foo/bar.txt"
    mode               = "0644"
    create_directories = true
  }
}

Error:

    resource_instance_test.go:628: Step 1/1 error: Error running apply: exit status 1
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to incus_instance.instance1, provider
        "provider[\"registry.terraform.io/hashicorp/incus\"]" produced an unexpected
        new value: .running: was cty.False, but now cty.True.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
@breml breml changed the title Instance file upload provider error if instance running = false Instance file upload provider error if instance running = false Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant