virt-manager/virtManager
Lin Ma 58f5e36da7 fsdetails: Fix an error with source.socket of virtiofs
Using the source.socket of virtiofs needs a virtiofsd daemon launched
outside of libvirtd, So the filesystem UI doesn't support it yet. If
users need it they can set it manually in the XML editor.
But if we view the filesystem info of such a VM on the details page,
It fails with this error message:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details/details.py", line 1713, in _refresh_page
    self._refresh_filesystem_page(dev)
  File "/usr/share/virt-manager/virtManager/details/details.py", line 2241, in _refresh_filesystem_page
    self.fsDetails.set_dev(dev)
  File "/usr/share/virt-manager/virtManager/device/fsdetails.py", line 193, in set_dev
    self.widget("fs-source").set_text(dev.source)
TypeError: Argument 1 does not allow None as a value

This patch fixes above issue by leaving the 'source path' info blank in
case of source.socket.
In this case, Considering that showing 'target path' info without source
info is kind of meaningless, So this patch leaves the 'target path' info
blank as well.

Signed-off-by: Lin Ma <lma@suse.com>
2022-08-17 10:24:10 -04:00
..
details xmlutil: Take unindent_device_xml from details.py 2022-08-03 12:34:47 -04:00
device fsdetails: Fix an error with source.socket of virtiofs 2022-08-17 10:24:10 -04:00
lib uitests: top off test coverage 2022-01-17 17:11:18 -05:00
object Fix UI rename with firmware='efi' 2022-06-20 09:37:26 -04:00
__init__.py Fix copyright header to specify GPLv2 or later, not GPLv2 only. 2018-04-04 16:51:37 -04:00
about.py virtManager: add coverage annotations and remove dead code 2020-08-26 15:20:05 -04:00
addhardware.py virt-manager: add support for qemu-vdagent channel 2022-06-13 13:49:08 -04:00
asyncjob.py progress: Drop tqdm and revert back to local urlgrabber copy 2021-06-09 16:52:11 -04:00
baseclass.py vmwindow: Cleanup the interaction with vmmConsolePages 2020-09-09 19:37:11 -04:00
clone.py Clean up gtk STOCK and various image usage 2022-02-19 15:33:42 -05:00
config.py createvm: Tweaks to new UEFI pref 2022-01-31 14:18:42 -05:00
connection.py connection: De-duplicate ui and cli version logging 2022-08-01 06:04:48 -04:00
connmanager.py virtManager: add coverage annotations and remove dead code 2020-08-26 15:20:05 -04:00
createconn.py uitests: Finish createconn.py coverage 2020-08-26 15:20:05 -04:00
createnet.py createnet: Add full uitest coverage 2020-08-26 15:20:05 -04:00
createpool.py virtManager: add coverage annotations and remove dead code 2020-08-26 15:20:05 -04:00
createvm.py createvm: Tweaks to new UEFI pref 2022-01-31 14:18:42 -05:00
createvol.py createvol: Drop Allocation field in favor of checkbox 2020-09-20 17:08:39 -04:00
delete.py Clean up gtk STOCK and various image usage 2022-02-19 15:33:42 -05:00
engine.py virt-manager: Stop suppressing all warnings 2020-09-19 14:28:05 -04:00
error.py ui: Remove use of deprecated GtkAlignment 2022-02-20 09:53:17 -05:00
host.py ui: Remove use of deprecated GtkAlignment 2022-02-20 09:53:17 -05:00
hostnets.py Clean up gtk STOCK and various image usage 2022-02-19 15:33:42 -05:00
hoststorage.py Clean up gtk STOCK and various image usage 2022-02-19 15:33:42 -05:00
manager.py Clean up gtk STOCK and various image usage 2022-02-19 15:33:42 -05:00
migrate.py migrate: Add XML editor support 2020-09-05 17:50:48 -04:00
oslist.py virtManager: oslist: Push users towards linuxXXXX options 2022-02-12 11:53:09 -05:00
preferences.py createvm: Tweaks to new UEFI pref 2022-01-31 14:18:42 -05:00
storagebrowse.py objects: Erase the notion of connkey 2020-09-01 14:27:11 -04:00
systray.py systray: Appindicator tweaks 2020-11-16 11:11:19 -05:00
virtmanager.py virtmanager: Remove executable bit 2022-04-13 08:36:05 -04:00
vmmenu.py Clean up gtk STOCK and various image usage 2022-02-19 15:33:42 -05:00
vmwindow.py vmwindow: Customize window should not be 'deletable' 2022-08-01 09:44:48 -04:00
xmleditor.py virtManager: misc reference leak fixes 2020-09-08 17:32:00 -04:00