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:
parent
a010c49b8b
commit
5c1f4b2386
|
@ -221,7 +221,7 @@ def testMisc():
|
||||||
|
|
||||||
glustervol = StorageVolume(fullconn)
|
glustervol = StorageVolume(fullconn)
|
||||||
glustervol.pool = glusterpool
|
glustervol.pool = glusterpool
|
||||||
assert glustervol.supports_format() is True
|
assert glustervol.supports_format() is False
|
||||||
|
|
||||||
diskvol = StorageVolume(fullconn)
|
diskvol = StorageVolume(fullconn)
|
||||||
diskvol.pool = diskpool
|
diskvol.pool = diskpool
|
||||||
|
|
|
@ -621,11 +621,7 @@ class StorageVolume(_StorageObject):
|
||||||
######################
|
######################
|
||||||
|
|
||||||
def supports_format(self):
|
def supports_format(self):
|
||||||
if self.file_type == self.TYPE_FILE:
|
return self.file_type == self.TYPE_FILE
|
||||||
return True
|
|
||||||
if self._pool_xml.type == StoragePool.TYPE_GLUSTER:
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
|
|
Loading…
Reference in New Issue