mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
f6e88f6113
When virsh connects to a non-hypervisor daemon directly (e.g. "nodedev:///system") and user executes 'version' they are met with an error message. This is because cmdVersion() calls virConnectGetVersion() which fails, hence the error. The reason for virConnectGetVersion() fail is simple - it's documented as: Get the version level of the Hypervisor running. Well, there's no hypervisor in non-hypervisor daemons and thus it doesn't make sense to provide an implementation in each driver's virConnectDriver.hypervisorDriver table (just like we do for other APIs, e.g. nodeConnectIsSecure()). Given all of this, just make cmdVersion() deal with the error in a non-fatal fashion. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> |
||
---|---|---|
.. | ||
bash-completion | ||
nss | ||
wireshark | ||
libvirt_recover_xattrs.sh | ||
libvirt_win_icon_16x16.ico | ||
libvirt_win_icon_32x32.ico | ||
libvirt_win_icon_48x48.ico | ||
libvirt_win_icon_64x64.ico | ||
libvirt-guests.service.in | ||
libvirt-guests.sh.in | ||
meson.build | ||
virsh_win_icon.rc | ||
virsh-backup.c | ||
virsh-backup.h | ||
virsh-checkpoint.c | ||
virsh-checkpoint.h | ||
virsh-completer-checkpoint.c | ||
virsh-completer-checkpoint.h | ||
virsh-completer-domain.c | ||
virsh-completer-domain.h | ||
virsh-completer-host.c | ||
virsh-completer-host.h | ||
virsh-completer-interface.c | ||
virsh-completer-interface.h | ||
virsh-completer-network.c | ||
virsh-completer-network.h | ||
virsh-completer-nodedev.c | ||
virsh-completer-nodedev.h | ||
virsh-completer-nwfilter.c | ||
virsh-completer-nwfilter.h | ||
virsh-completer-pool.c | ||
virsh-completer-pool.h | ||
virsh-completer-secret.c | ||
virsh-completer-secret.h | ||
virsh-completer-snapshot.c | ||
virsh-completer-snapshot.h | ||
virsh-completer-volume.c | ||
virsh-completer-volume.h | ||
virsh-completer.c | ||
virsh-completer.h | ||
virsh-console.c | ||
virsh-console.h | ||
virsh-domain-event.c | ||
virsh-domain-event.h | ||
virsh-domain-monitor.c | ||
virsh-domain-monitor.h | ||
virsh-domain.c | ||
virsh-domain.h | ||
virsh-edit.c | ||
virsh-host.c | ||
virsh-host.h | ||
virsh-interface.c | ||
virsh-interface.h | ||
virsh-network.c | ||
virsh-network.h | ||
virsh-nodedev.c | ||
virsh-nodedev.h | ||
virsh-nwfilter.c | ||
virsh-nwfilter.h | ||
virsh-pool.c | ||
virsh-pool.h | ||
virsh-secret.c | ||
virsh-secret.h | ||
virsh-snapshot.c | ||
virsh-snapshot.h | ||
virsh-util.c | ||
virsh-util.h | ||
virsh-volume.c | ||
virsh-volume.h | ||
virsh.c | ||
virsh.h | ||
virt-admin-completer.c | ||
virt-admin-completer.h | ||
virt-admin.c | ||
virt-admin.h | ||
virt-host-validate-bhyve.c | ||
virt-host-validate-bhyve.h | ||
virt-host-validate-ch.c | ||
virt-host-validate-ch.h | ||
virt-host-validate-common.c | ||
virt-host-validate-common.h | ||
virt-host-validate-lxc.c | ||
virt-host-validate-lxc.h | ||
virt-host-validate-qemu.c | ||
virt-host-validate-qemu.h | ||
virt-host-validate.c | ||
virt-login-shell-helper.c | ||
virt-login-shell.c | ||
virt-login-shell.conf | ||
virt-pki-query-dn.c | ||
virt-pki-validate.in | ||
virt-qemu-qmp-proxy | ||
virt-qemu-sev-validate | ||
virt-sanlock-cleanup.in | ||
virt-xml-validate.in | ||
vsh-table.c | ||
vsh-table.h | ||
vsh.c | ||
vsh.h |