summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorCerberus <matt.dietz@rackspace.com>2011-03-16 11:54:10 -0500
committerCerberus <matt.dietz@rackspace.com>2011-03-16 11:54:10 -0500
commitdee86f53b0d1dccbc69d354b66ca7a4767e81d43 (patch)
treeb26e8bab1d7f086cfd13223b12e237cf751d5836 /nova/virt
parent9cb503ae9d4112fa464f2284631ad1e24f8f7ce4 (diff)
tweak
Diffstat (limited to 'nova/virt')
-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 ebaa4a69a..483b0cb82 100644
--- a/nova/virt/xenapi/vmops.py
+++ b/nova/virt/xenapi/vmops.py
@@ -364,7 +364,7 @@ class VMOps(object):
"""Resize a running instance by changing it's RAM and disk size """
vm_ref = VMHelper.lookup(self._session, instance.name)
vdi_ref = self._session.call_xenapi('VDI.get_by_uuid', vdi_uuid)
- new_disk_size = instance.local_gb
+ new_disk_size = instance.local_gb * 1024
#TODO(mdietz): this will need to be adjusted for swap later
task = self._session.call_xenapi('VDI.resize_online', vdi_ref,