devicedisk: Don't set driver name=unknown for rbd vols

This commit is contained in:
Cole Robinson 2014-12-10 12:24:16 -05:00
parent f16dc4dd34
commit 117cbfe12f
2 changed files with 4 additions and 2 deletions

View File

@ -72,7 +72,7 @@
<target dev="vdf" bus="virtio"/>
</disk>
<disk type="volume" device="disk">
<driver name="qemu" type="unknown"/>
<driver name="qemu"/>
<source volume="some-rbd-vol" pool="rbd-ceph"/>
<target dev="vdg" bus="virtio"/>
</disk>

View File

@ -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):