summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libvirt/resource_libvirt_volume.go5
-rw-r--r--libvirt/volume_def.go6
2 files changed, 4 insertions, 7 deletions
diff --git a/libvirt/resource_libvirt_volume.go b/libvirt/resource_libvirt_volume.go
index 08c5f767..1b105907 100644
--- a/libvirt/resource_libvirt_volume.go
+++ b/libvirt/resource_libvirt_volume.go
@@ -35,7 +35,7 @@ func resourceLibvirtVolume() *schema.Resource {
"size": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
- Default: -1,
+ Default: -1,
},
"base_volume": &schema.Schema{
Type: schema.TypeString,
@@ -57,7 +57,6 @@ func remoteImageSize(url string) (int, error) {
return length, nil
}
-
func resourceLibvirtVolumeCreate(d *schema.ResourceData, meta interface{}) error {
virConn := meta.(*Client).libvirt
if virConn == nil {
@@ -139,7 +138,6 @@ func resourceLibvirtVolumeCreate(d *schema.ResourceData, meta interface{}) error
log.Printf("%d bytes uploaded\n", n)
}
-
return resourceLibvirtVolumeRead(d, meta)
}
@@ -177,6 +175,5 @@ func resourceLibvirtVolumeDelete(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("Can't delete volume %s", d.Id())
}
-
return nil
}
diff --git a/libvirt/volume_def.go b/libvirt/volume_def.go
index 34abd5ca..a8b74d1d 100644
--- a/libvirt/volume_def.go
+++ b/libvirt/volume_def.go
@@ -20,9 +20,9 @@ type defVolume struct {
} `xml:"format"`
} `xml:"target"`
Allocation int `xml:"allocation"`
- Capacity struct {
- Unit string `xml:"unit,attr"`
- Amount int `xml:"chardata"`
+ Capacity struct {
+ Unit string `xml:"unit,attr"`
+ Amount int `xml:"chardata"`
} `xml:"capacity"`
BackingStore *defBackingStore `xml:"backingStore,omitempty"`
}