[libvirt] [PATCH] virsh: fixing virsh prompt when connection changes to readonly mode.
Erik Skultety
eskultet at redhat.com
Mon Nov 27 09:20:02 UTC 2017
On Sun, Nov 26, 2017 at 10:18:11PM -0200, Julio Faracco wrote:
> 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 at gmail.com>
Reviewed-by: Erik Skultety <eskultet at redhat.com>
Wrapped the commit message to 80 characters and pushed.
More information about the libvir-list
mailing list