mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-08 21:18:04 +03:00
fsdetails: Fix displaying filesystem type=ram devices
And add a test XML example to demonstrate it
This commit is contained in:
parent
3d81ef097a
commit
1600ac39f0
@ -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 -->
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user