[PATCH 3/4] vshAdmConnect: Preserve connection URI in ctl->connname if auto-detected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Probe the current URI so that other places don't need to do that.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tools/virt-admin.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/virt-admin.c b/tools/virt-admin.c
index 1e22a3c8a9..02cf421cee 100644
--- a/tools/virt-admin.c
+++ b/tools/virt-admin.c
@@ -120,6 +120,9 @@ vshAdmConnect(vshControl *ctl, unsigned int flags)

         if (priv->wantReconnect)
             vshPrint(ctl, "%s\n", _("Reconnected to the admin server"));
+
+        if (!ctl->connname)
+            ctl->connname = virAdmConnectGetURI(priv->conn);
     }

     return 0;
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux