Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
virt-manager.12547
0bf6124a-fix-updating-UI-when-volume-deleted.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0bf6124a-fix-updating-UI-when-volume-deleted.patch of Package virt-manager.12547
Subject: storage: Fix updating UI when volume deleted (bz 1279940) From: Cole Robinson crobinso@redhat.com Tue Nov 10 17:40:04 2015 -0500 Date: Tue Nov 10 17:40:04 2015 -0500: Git: 0bf6124a280dbff9c31ac8e88ecea7e42fd0dc14 We in fact weren't updating the cached XML when pool.refresh() was called. Index: virt-manager-1.2.1/virtManager/storagepool.py =================================================================== --- virt-manager-1.2.1.orig/virtManager/storagepool.py +++ virt-manager-1.2.1/virtManager/storagepool.py @@ -146,7 +146,7 @@ class vmmStoragePool(vmmLibvirtObject): def _init_libvirt_state(self): self.tick() - self.refresh(skip_xml_refresh=True) + self.refresh(_do_refresh_xml=False) for vol in self.get_volumes(): vol.init_libvirt_state() @@ -173,16 +173,16 @@ class vmmStoragePool(vmmLibvirtObject): self._backend.undefine() self._backend = None - def refresh(self, skip_xml_refresh=False): + def refresh(self, _do_refresh_xml=True): """ - :param skip_xml_refresh: Only used by init_libvirt_state to avoid - double XML updating + :param _do_refresh_xml: We want this by default. It's only skipped + to avoid double updating XML via init_libvirt_state """ if not self.is_active(): return self._backend.refresh(0) - if skip_xml_refresh: + if _do_refresh_xml: self.ensure_latest_xml() self._update_volumes(force=True) self.idle_emit("refreshed")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor