Skip to content

Commit

Permalink
fix(CLOUDDEV-655): fix volume update
Browse files Browse the repository at this point in the history
  • Loading branch information
George Demin committed Oct 31, 2024
1 parent ca1b899 commit b6ddd03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edgecenter/resource_edgecenter_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b6ddd03

Please sign in to comment.