From b6ddd031a3a12d6431f6744ac958238f1f866152 Mon Sep 17 00:00:00 2001 From: George Demin Date: Mon, 28 Oct 2024 06:41:54 +1000 Subject: [PATCH] fix(CLOUDDEV-655): fix volume update --- edgecenter/resource_edgecenter_volume.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edgecenter/resource_edgecenter_volume.go b/edgecenter/resource_edgecenter_volume.go index c4b8fcdf..8be076ec 100644 --- a/edgecenter/resource_edgecenter_volume.go +++ b/edgecenter/resource_edgecenter_volume.go @@ -126,7 +126,7 @@ Volumes can be attached to a virtual machine and manipulated like a physical har "metadata_map": { Type: schema.TypeMap, Optional: true, - Computed: true, + Computed: false, Description: "A map containing metadata, for example tags.", Elem: &schema.Schema{ Type: schema.TypeString, @@ -212,7 +212,7 @@ func resourceVolumeRead(ctx context.Context, d *schema.ResourceData, m interface d.Set("region_id", volume.RegionID) d.Set("project_id", volume.ProjectID) - metadataMap, metadataReadOnly := PrepareMetadata(volume.Metadata) + metadataMap, metadataReadOnly := PrepareMetadata(volume.MetadataDetailed) if err = d.Set("metadata_map", metadataMap); err != nil { return diag.FromErr(err)