Skip to content

libvirt_volume target.permissions.mode fails due to incorrect comparision #1252

@scupperscupper

Description

@scupperscupper

Hello,

while trying the new version 0.9.1, I have encountered this error :

resource "libvirt_volume" "main_disk" {
  name   = "main.qcow2"
  pool   = "new"
  create = {
    content = {
      url = "https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img"
    }
  }
  target = {
    permissions = {
      owner = "64055"
      group = "108"
      mode  = "770"
    }
  }
}

libvirt_volume.main_disk: Creating...

│ Error: Provider produced inconsistent result after apply

│ When applying changes to libvirt_volume.main_disk, provider "provider["registry.terraform.io/dmacvicar/libvirt"]"
│ produced an unexpected new value: .target.permissions.mode: was cty.StringVal("770"), but now cty.StringVal("0770").

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

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