1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/tools
Julio Faracco 13d45b0dc2 virsh: Fix virsh prompt when connection changes to readonly mode.
This commit fixes the virsh prompt when reconnection to the same URI is
called: `virsh # connect --readonly` (Reconnect). The problem is
happening because the code is considering URI (name) as a mandatory
parameter to change the prompt. This commit remove the assignment into
`priv->readonly` from `if (name)` conditional.

Before:
    virsh # uri
    qemu:///system

    virsh # connect --readonly

    virsh #

After:
    virsh # uri
    qemu:///system

    virsh # connect --readonly

    virsh >

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1507737

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2017-11-27 10:12:30 +01:00
..
nss Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
wireshark Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
libvirt_win_icon_16x16.ico
libvirt_win_icon_32x32.ico
libvirt_win_icon_48x48.ico
libvirt_win_icon_64x64.ico
libvirt-guests.init.in Use https:// links for most sites 2017-10-16 10:22:34 +01:00
libvirt-guests.service.in Use https:// links for most sites 2017-10-16 10:22:34 +01:00
libvirt-guests.sh.in
libvirt-guests.sysconf tools: Fix docs in libvirt-guests configuration file 2017-08-21 16:12:42 +02:00
Makefile.am tools: Enable warnings for more binaries/libs 2017-11-21 12:52:39 +01:00
virsh_win_icon.rc
virsh-console.c
virsh-console.h
virsh-domain-monitor.c virsh: domifstat: enhance the command's help output 2017-11-22 13:06:56 +01:00
virsh-domain-monitor.h
virsh-domain.c util: Rename virBitmapDataToString to virBitmapDataFormat 2017-11-18 10:45:10 +01:00
virsh-domain.h
virsh-edit.c
virsh-host.c util: Rename virBitmapDataToString to virBitmapDataFormat 2017-11-18 10:45:10 +01:00
virsh-host.h
virsh-interface.c virsh: Define multi line macros properly 2017-11-04 08:38:08 +01:00
virsh-interface.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh-network.c virsh: Define multi line macros properly 2017-11-04 08:38:08 +01:00
virsh-network.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh-nodedev.c
virsh-nodedev.h
virsh-nwfilter.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh-nwfilter.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh-pool.c virsh: Define multi line macros properly 2017-11-04 08:38:08 +01:00
virsh-pool.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh-secret.c util: Move virSecretUsageType to virsecret.h 2017-09-21 15:46:48 -04:00
virsh-secret.h
virsh-snapshot.c virsh: Define multi line macros properly 2017-11-04 08:38:08 +01:00
virsh-snapshot.h
virsh-util.c
virsh-util.h
virsh-volume.c virsh: Define multi line macros properly 2017-11-04 08:38:08 +01:00
virsh-volume.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virsh.c virsh: Fix virsh prompt when connection changes to readonly mode. 2017-11-27 10:12:30 +01:00
virsh.h virsh: Define multi line macros properly 2017-11-04 08:38:08 +01:00
virsh.pod virsh: introduce set-lifecycle-action command 2017-10-19 11:52:28 +02:00
virt-admin.c Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
virt-admin.h
virt-admin.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-host-validate-bhyve.c virsh: Define multi line macros properly 2017-11-04 08:38:08 +01:00
virt-host-validate-bhyve.h
virt-host-validate-common.c virt-host-validate: Fix warning for IOMMU detection on PPC 2017-08-24 18:37:37 -04:00
virt-host-validate-common.h
virt-host-validate-lxc.c virt-host-validate: require fuse for LXC if compiled in 2017-10-12 21:32:07 +02:00
virt-host-validate-lxc.h
virt-host-validate-qemu.c
virt-host-validate-qemu.h
virt-host-validate.c
virt-host-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-login-shell.c
virt-login-shell.conf
virt-login-shell.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-pki-validate.in Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-pki-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-sanlock-cleanup.in
virt-sanlock-cleanup.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virt-xml-validate.in
virt-xml-validate.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
vsh.c tools: Work around ancient readline 2017-11-23 18:37:17 +01:00
vsh.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00