storage: Fix test failures with reflink check

This commit is contained in:
Cole Robinson 2015-02-18 14:49:04 -05:00
parent 84decb61f8
commit 271e248a41

View File

@ -601,7 +601,8 @@ class StorageVolume(_StorageObject):
def _get_reflink(self):
return self._reflink
def _set_reflink(self, reflink):
if not self.conn.check_support(self.conn.SUPPORT_POOL_REFLINK):
if (reflink and not
self.conn.check_support(self.conn.SUPPORT_POOL_REFLINK)):
raise ValueError(_("Creating storage by btrfs COW copy is"
" not supported by this libvirt version."))