summaryrefslogtreecommitdiff
path: root/libvirt/resource_libvirt_volume.go
diff options
context:
space:
mode:
Diffstat (limited to 'libvirt/resource_libvirt_volume.go')
-rw-r--r--libvirt/resource_libvirt_volume.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvirt/resource_libvirt_volume.go b/libvirt/resource_libvirt_volume.go
index afd5b16d..958f9598 100644
--- a/libvirt/resource_libvirt_volume.go
+++ b/libvirt/resource_libvirt_volume.go
@@ -271,10 +271,10 @@ func resourceLibvirtVolumeRead(d *schema.ResourceData, meta interface{}) error {
if virErr.Code != libvirt.ERR_NO_STORAGE_VOL {
return fmt.Errorf("Can't retrieve volume %s", d.Id())
}
+ volID := d.Id()
- log.Printf("[INFO] Volume %s not found, attempting to start its pool")
+ log.Printf("[INFO] Volume %s not found, attempting to start its pool", d.Id())
- volID := d.Id()
volPoolName := d.Get("pool").(string)
volPool, err := virConn.LookupStoragePoolByName(volPoolName)
if err != nil {