From 117cbfe12fb32ce2040c88619f263335630624f6 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 10 Dec 2014 12:24:16 -0500 Subject: [PATCH] devicedisk: Don't set driver name=unknown for rbd vols --- tests/cli-test-xml/compare/virt-install-many-devices.xml | 2 +- virtinst/diskbackend.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/cli-test-xml/compare/virt-install-many-devices.xml b/tests/cli-test-xml/compare/virt-install-many-devices.xml index a1b9b6c9c..8bca4f782 100644 --- a/tests/cli-test-xml/compare/virt-install-many-devices.xml +++ b/tests/cli-test-xml/compare/virt-install-many-devices.xml @@ -72,7 +72,7 @@ - + diff --git a/virtinst/diskbackend.py b/virtinst/diskbackend.py index 444b39ac1..864ad1ee7 100644 --- a/virtinst/diskbackend.py +++ b/virtinst/diskbackend.py @@ -552,7 +552,9 @@ class StorageBackend(_StorageBase): def get_driver_type(self): if self._vol_object: - return self.get_vol_xml().format + ret = self.get_vol_xml().format + if ret != "unknown": + return ret return None def validate(self, disk):