summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/providers/libvirt/r/volume.html.markdown2
-rw-r--r--libvirt/resource_libvirt_volume.go1
2 files changed, 1 insertions, 2 deletions
diff --git a/docs/providers/libvirt/r/volume.html.markdown b/docs/providers/libvirt/r/volume.html.markdown
index 52ffd361..4efced08 100644
--- a/docs/providers/libvirt/r/volume.html.markdown
+++ b/docs/providers/libvirt/r/volume.html.markdown
@@ -31,7 +31,7 @@ The following arguments are supported:
If not given, the `default` pool will be used.
* `source` - (Optional) If specified, the image will be retrieved from this URL and uploaded into
libvirt. Only remote HTTP urls are supported for now.
-* `size` - (Optional) The size of the volume.
+* `size` - (Optional) The size of the volume in GB.
If `source` is specified, `size` will be set to the source image file size.
diff --git a/libvirt/resource_libvirt_volume.go b/libvirt/resource_libvirt_volume.go
index 1b105907..155a427c 100644
--- a/libvirt/resource_libvirt_volume.go
+++ b/libvirt/resource_libvirt_volume.go
@@ -97,7 +97,6 @@ func resourceLibvirtVolumeCreate(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("'size' needs to be specified if no 'source' is given.")
}
- volumeDef.Capacity.Unit = "MB"
volumeDef.Capacity.Amount = d.Get("size").(int)
}