mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
diskbackend: Get volume path from XML
The XML is likely already cached, and path() can hit the network, so this can speed things up.
This commit is contained in:
parent
3064f4058d
commit
f512c05381
@ -460,7 +460,7 @@ class StorageBackend(_StorageBase):
|
||||
|
||||
def _get_path(self):
|
||||
if self._vol_object:
|
||||
return self._vol_object.path()
|
||||
return self._get_vol_xml().target_path
|
||||
return self._path
|
||||
path = property(_get_path)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user