summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorPádraig Brady <pbrady@redhat.com>2012-07-18 00:40:24 +0100
committerPádraig Brady <pbrady@redhat.com>2012-07-24 11:10:15 +0100
commit5d8e73ff17178f6a5b1125dcc7be946a134d77f5 (patch)
treea04fa9200b53c0011809879627286063c2618ce1 /nova/openstack
parenta08f8009d20918b8842f3c781934d1072f6f2643 (diff)
downloadnova-5d8e73ff17178f6a5b1125dcc7be946a134d77f5.tar.gz
nova-5d8e73ff17178f6a5b1125dcc7be946a134d77f5.tar.xz
nova-5d8e73ff17178f6a5b1125dcc7be946a134d77f5.zip
refactor all uses of the `qemu-img info` command
* nova/virt/images.py: Define a single function that calls `qemu-img info` in a robust manner, by avoiding locale issues etc. * nova/virt/libvirt/utils.py: Define secondary functions to parse items returned from images.qemu_img_info(). * nova/virt/libvirt/driver.py: Use the libvirt.utils functions. * nova/virt/disk/api.py: Likewise. * nova/tests/test_libvirt.py: Remove no longer needed stub for utils.execute('qemu-img info'). Adjust to a more restrictive `qemu-img info` format, and more robust calling signature. * nova/tests/test_imagebackend.py: Adjust to moved method. Change-Id: I739dd246410c215f401ebd3a92b8207f46e8fb9a
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions