createvol: Log parent pool XML when opening

And chosen volume XML
This commit is contained in:
Cole Robinson 2015-08-10 16:45:44 -04:00
parent 7be81e6300
commit 5f2913e5e1
2 changed files with 10 additions and 1 deletions

View File

@ -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()

View File

@ -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):