virt-manager: fix refreshing storage pool browse list
The commit b044dd renamed vmmStoragePool.uuid to vmmStoragePool._uuid, causing this error: Traceback (most recent call last): File "virtManager/storagebrowse.py", line 280, in refresh_current_pool self.refresh_storage_pool(None, cp.get_uuid()) File "virtManager/storagebrowse.py", line 243, in refresh_storage_pool if curpool.uuid != uuid: AttributeError: 'vmmStoragePool' object has no attribute 'uuid' Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
5ec2d0cb8e
commit
a8dbebd4ba
|
@ -240,7 +240,7 @@ class vmmStorageBrowser(vmmGObjectUI):
|
|||
pool_list = self.widget("pool-list")
|
||||
host.refresh_pool_in_list(pool_list, self.conn, uuid)
|
||||
curpool = self.current_pool()
|
||||
if curpool.uuid != uuid:
|
||||
if curpool.get_uuid() != uuid:
|
||||
return
|
||||
|
||||
# Currently selected pool changed state: force a 'pool_selected' to
|
||||
|
|
Loading…
Reference in New Issue