diff options
author | Dario Maiocchi <dmaiocchi@suse.com> | 2017-11-16 16:49:53 +0100 |
---|---|---|
committer | Dario Maiocchi <dmaiocchi@suse.com> | 2017-11-16 16:49:53 +0100 |
commit | 03b52b7f1c82bbfa3291b6517aaebdb8dd5ae2d1 (patch) | |
tree | 381a50202a08e2d5db13c010c643726a64cc158c /libvirt/resource_libvirt_volume.go | |
parent | acad5df18a9ffd03d6f6bdd2b33f4eade8e9a09d (diff) | |
download | terraform-provider-libvirt-03b52b7f1c82bbfa3291b6517aaebdb8dd5ae2d1.tar terraform-provider-libvirt-03b52b7f1c82bbfa3291b6517aaebdb8dd5ae2d1.tar.gz |
remove duplicata declaration and simplify code.
This fix is with the cmd "gofmt -w -s *"
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 afd5b16d..8d75b744 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, |