fsdetails: Fix displaying filesystem type=ram devices

And add a test XML example to demonstrate it
This commit is contained in:
Cole Robinson 2017-06-27 14:08:44 -04:00
parent 3d81ef097a
commit 1600ac39f0
2 changed files with 6 additions and 0 deletions

View File

@ -704,6 +704,10 @@ Foo bar baz & yeah boii < > yeahfoo
<source dir='/foo/bar4'/>
<target dir='/target4'/>
</filesystem>
<filesystem type='ram'>
<source usage='8192' units='KiB'/>
<target dir='/run'/>
</filesystem>
<!-- tpm devices -->

View File

@ -161,6 +161,8 @@ class vmmFSDetails(vmmGObjectUI):
check_visible=True)
def get_config_fs_type(self):
if self.widget("fs-type-label").is_visible():
return self.widget("fs-type-label").get_text()
return uiutil.get_list_selection(self.widget("fs-type-combo"),
check_visible=True)