Skip to content

Commit

Permalink
volume: update content_type on read
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcstephens committed Jul 13, 2023
1 parent d21f09a commit 5faaf45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lxd/resource_lxd_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ func resourceLxdVolumeRead(d *schema.ResourceData, meta interface{}) error {
d.Set("config", newConfig)
d.Set("expanded_config", volume.Config)
d.Set("location", volume.Location)
d.Set("content_type", volume.ContentType)

return nil
}
Expand Down
4 changes: 4 additions & 0 deletions lxd/resource_lxd_volume_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ func resourceLxdVolumeCopy() *schema.Resource {
Required: true,
Description: "The name of the source volume.",
},
"content_type": {
Type: schema.TypeString,
Computed: true,
},
},
}
}
Expand Down

0 comments on commit 5faaf45

Please sign in to comment.