mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
createvol: Log parent pool XML when opening
And chosen volume XML
This commit is contained in:
parent
7be81e6300
commit
5f2913e5e1
@ -64,7 +64,14 @@ class vmmCreateVolume(vmmGObjectUI):
|
||||
|
||||
|
||||
def show(self, parent):
|
||||
logging.debug("Showing new volume wizard")
|
||||
try:
|
||||
parent_xml = self.parent_pool.xmlobj.get_xml_config()
|
||||
except:
|
||||
logging.debug("Error getting parent_pool xml", exc_info=True)
|
||||
parent_xml = None
|
||||
|
||||
logging.debug("Showing new volume wizard for parent_pool=\n%s",
|
||||
parent_xml)
|
||||
self.reset_state()
|
||||
self.topwin.set_transient_for(parent)
|
||||
self.topwin.present()
|
||||
|
@ -135,6 +135,7 @@ class vmmStorageBrowser(vmmGObjectUI):
|
||||
|
||||
def _volume_chosen(self, src, volume):
|
||||
ignore = src
|
||||
logging.debug("Chosen volume XML:\n%s", volume.xmlobj.get_xml_config())
|
||||
self._finish(volume.get_target_path())
|
||||
|
||||
def _vol_sensitive_cb(self, fmt):
|
||||
@ -166,6 +167,7 @@ class vmmStorageBrowser(vmmGObjectUI):
|
||||
dialog_type=dialog_type, browse_reason=self._browse_reason,
|
||||
dialog_name=dialog_name, choose_button=choose_button)
|
||||
if filename:
|
||||
logging.debug("Browse local chose path=%s", filename)
|
||||
self._finish(filename)
|
||||
|
||||
def _finish(self, path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user