virtinst: storage: gluster pools don't support volume creation

Drop code that implies they do

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-09-20 16:44:24 -04:00
parent a010c49b8b
commit 5c1f4b2386
2 changed files with 2 additions and 6 deletions

View File

@ -221,7 +221,7 @@ def testMisc():
glustervol = StorageVolume(fullconn)
glustervol.pool = glusterpool
assert glustervol.supports_format() is True
assert glustervol.supports_format() is False
diskvol = StorageVolume(fullconn)
diskvol.pool = diskpool

View File

@ -621,11 +621,7 @@ class StorageVolume(_StorageObject):
######################
def supports_format(self):
if self.file_type == self.TYPE_FILE:
return True
if self._pool_xml.type == StoragePool.TYPE_GLUSTER:
return True
return False
return self.file_type == self.TYPE_FILE
##################