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

[et-mgmt-tools] [PATCH] virt-manager: don't drop .local for zeroconf



Hi,
we currently drop ".local" from zeroconf hostnames leading to name
lookup failures. I wonder why this is being done in the first place?
Attached patch removes it which makes libvirt daemons discovered via
avahi work for me.
Cheers,
 -- Guido

diff -r ef0bd366ec54 src/virtManager/connect.py
--- a/src/virtManager/connect.py	Sat Feb 07 18:37:10 2009 +0100
+++ b/src/virtManager/connect.py	Sat Feb 07 23:44:42 2009 +0100
@@ -249,8 +249,6 @@
         self.emit("completed", uri, readOnly, auto)
 
     def sanitize_hostname(self, host):
-        if host.endswith(".local"):
-            host = host[:-6]
         if host == "linux" or host == "localhost":
             host = ""
         if host.startswith("linux-"):

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