summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCerberus <matt.dietz@rackspace.com>2011-03-16 12:57:45 -0500
committerCerberus <matt.dietz@rackspace.com>2011-03-16 12:57:45 -0500
commita31e715617e5af107bc79caeedf0aff41f65fb07 (patch)
treefc2549fe39b3c9d7c1cbedbc3334327bf0390a04
parentd99a8d48cf38eb6be01587f9b377f48ff6cd88a2 (diff)
downloadnova-a31e715617e5af107bc79caeedf0aff41f65fb07.tar.gz
nova-a31e715617e5af107bc79caeedf0aff41f65fb07.tar.xz
nova-a31e715617e5af107bc79caeedf0aff41f65fb07.zip
The geebees
-rw-r--r--nova/virt/xenapi/vmops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py
index c292822ca..b449437c9 100644
--- a/nova/virt/xenapi/vmops.py
+++ b/nova/virt/xenapi/vmops.py
@@ -363,7 +363,7 @@ class VMOps(object):
def resize_instance(self, instance, vdi_uuid):
"""Resize a running instance by changing it's RAM and disk size """
vm_ref = VMHelper.lookup(self._session, instance.name)
- new_disk_size = instance.local_gb * 1024
+ new_disk_size = str(instance.local_gb * 1024 * 1024)
LOG.debug(_("Resizing VDI %s for instance %s. Expanding to %d megs") % (vdi_uuid,
instance.name, new_disk_size))
vdi_ref = self._session.call_xenapi('VDI.get_by_uuid', vdi_uuid)