From e354bc81e06c08d43e6635d98a3e8c60558a2867 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 12 Feb 2013 19:38:58 +0000 Subject: Use a more specific error reporting invalid disk hardware Instead of using NovaException for reporting invalid user specified disk hardware, use UnsupportedHardware and UnsupportedVirtType exceptions. Change-Id: I68ed1c0569bd0c0679e9fff3ffd436197f78a9f0 Signed-off-by: Daniel P. Berrange --- nova/tests/test_libvirt_blockinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/tests') diff --git a/nova/tests/test_libvirt_blockinfo.py b/nova/tests/test_libvirt_blockinfo.py index e8d548399..68f1fa394 100644 --- a/nova/tests/test_libvirt_blockinfo.py +++ b/nova/tests/test_libvirt_blockinfo.py @@ -421,7 +421,7 @@ class LibvirtBlockInfoTest(test.TestCase): self.assertEqual(bus, 'usb') image_meta = {'properties': {'disk_bus': 'xen'}} - self.assertRaises(exception.NovaException, + self.assertRaises(exception.UnsupportedHardware, blockinfo.get_disk_bus_for_device_type, 'kvm', image_meta) -- cgit