diff options
Diffstat (limited to 'libvirt/resource_libvirt_volume.go')
-rw-r--r-- | libvirt/resource_libvirt_volume.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libvirt/resource_libvirt_volume.go b/libvirt/resource_libvirt_volume.go index bc890e3c..7a7f6a40 100644 --- a/libvirt/resource_libvirt_volume.go +++ b/libvirt/resource_libvirt_volume.go @@ -13,44 +13,44 @@ import ( func volumeCommonSchema() map[string]*schema.Schema { return map[string]*schema.Schema{ - "name": &schema.Schema{ + "name": { Type: schema.TypeString, Required: true, ForceNew: true, }, - "pool": &schema.Schema{ + "pool": { Type: schema.TypeString, Optional: true, Default: "default", ForceNew: true, }, - "source": &schema.Schema{ + "source": { Type: schema.TypeString, Optional: true, ForceNew: true, }, - "size": &schema.Schema{ + "size": { Type: schema.TypeInt, Optional: true, Computed: true, ForceNew: true, }, - "format": &schema.Schema{ + "format": { Type: schema.TypeString, Optional: true, ForceNew: true, }, - "base_volume_id": &schema.Schema{ + "base_volume_id": { Type: schema.TypeString, Optional: true, ForceNew: true, }, - "base_volume_pool": &schema.Schema{ + "base_volume_pool": { Type: schema.TypeString, Optional: true, ForceNew: true, }, - "base_volume_name": &schema.Schema{ + "base_volume_name": { Type: schema.TypeString, Optional: true, ForceNew: true, |