summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-08-12 16:25:16 -0500
committerJosh Kearney <josh@jk0.org>2011-08-12 16:25:16 -0500
commitb238bcd9de989e7dabe6698b3de77a104d96a941 (patch)
tree866d893bcbde0ec1efc39d46a7c0ac76ce98f1af /nova/virt
parentb60fa0d09d02066863736a3e98f07094c4db05a6 (diff)
downloadnova-b238bcd9de989e7dabe6698b3de77a104d96a941.tar.gz
nova-b238bcd9de989e7dabe6698b3de77a104d96a941.tar.xz
nova-b238bcd9de989e7dabe6698b3de77a104d96a941.zip
Updated logging.
Diffstat (limited to 'nova/virt')
-rw-r--r--nova/virt/xenapi/vm_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py
index e86f72347..1f5f9b416 100644
--- a/nova/virt/xenapi/vm_utils.py
+++ b/nova/virt/xenapi/vm_utils.py
@@ -445,8 +445,9 @@ class VMHelper(HelperBase):
"""
size_bytes = 0
for vdi_rec in walk_vdi_chain(session, vdi_uuid):
+ cur_vdi_uuid = vdi_rec['uuid']
vdi_size_bytes = int(vdi_rec['physical_utilisation'])
- LOG.debug(_('vdi_uuid=%(vdi_uuid)s vdi_size_bytes='
+ LOG.debug(_('vdi_uuid=%(cur_vdi_uuid)s vdi_size_bytes='
'%(vdi_size_bytes)d' % locals()))
size_bytes += vdi_size_bytes
return size_bytes