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:
Giuseppe Scrivano 2013-08-13 14:26:25 +02:00 committed by Cole Robinson
parent 5ec2d0cb8e
commit a8dbebd4ba

View File

@ -240,7 +240,7 @@ class vmmStorageBrowser(vmmGObjectUI):
pool_list = self.widget("pool-list") pool_list = self.widget("pool-list")
host.refresh_pool_in_list(pool_list, self.conn, uuid) host.refresh_pool_in_list(pool_list, self.conn, uuid)
curpool = self.current_pool() curpool = self.current_pool()
if curpool.uuid != uuid: if curpool.get_uuid() != uuid:
return return
# Currently selected pool changed state: force a 'pool_selected' to # Currently selected pool changed state: force a 'pool_selected' to