[libvirt] [PATCH 1/2] vxml: Add which volume could not be found to error message

Wenchao Xia xiawenc at linux.vnet.ibm.com
Wed Apr 10 08:32:05 UTC 2013


Reviewed-by: Wenchao Xia <xiawenc at linux.vnet.ibm.com>
> ---
>   suites/libvirt-cim/lib/XenKvmLib/vxml.py | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/suites/libvirt-cim/lib/XenKvmLib/vxml.py b/suites/libvirt-cim/lib/XenKvmLib/vxml.py
> index 51a4166..82ab501 100644
> --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py
> +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py
> @@ -921,7 +921,7 @@ class KVMXML(VirtXML, VirtCIM):
>                          port_num='-1', keymap="en-us", irstype="mouse",
>                          btype="ps2", vnc_passwd=None):
>           if not os.path.exists(disk_file_path):
> -            logger.error('Error: Disk image does not exist')
> +            logger.error('Error: Disk image %s does not exist', disk_file_path)
>               sys.exit(1)
>           VirtXML.__init__(self, 'kvm', test_dom, set_uuid(), mem, vcpus)
>           VirtCIM.__init__(self, 'KVM', test_dom, uuid, pae, acpi, apic, disk,
> @@ -984,7 +984,7 @@ class XenFVXML(VirtXML, VirtCIM):
>                          keymap="en-us",
>                          irstype="mouse", btype="ps2", vnc_passwd=None):
>           if not os.path.exists(disk_file_path):
> -            logger.error('Error: Disk image does not exist')
> +            logger.error('Error: Disk image %s does not exist', disk_file_path)
>               sys.exit(1)
>           VirtXML.__init__(self, 'xenfv', test_dom, set_uuid(), mem, vcpus)
>           VirtCIM.__init__(self, 'XenFV', test_dom, uuid, pae, acpi, apic, disk,
>


-- 
Best Regards

Wenchao Xia




More information about the libvir-list mailing list