[et-mgmt-tools] [PATCH]: virt-manager: Hint about ssh-askpass

Guido Günther agx at sigxcpu.org
Fri Feb 13 13:53:54 UTC 2009


Hi,
this came in via:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513599
It adds a hint about ssh-askpass if using ssh protocoll fails.
Patch by Sebastian Andrzej Siewior.
Cheers,
 -- Guido
-------------- next part --------------
diff -r e03490a72a2e src/virtManager/connection.py
--- a/src/virtManager/connection.py	Mon Feb 09 14:55:18 2009 -0500
+++ b/src/virtManager/connection.py	Fri Feb 13 14:50:42 2009 +0100
@@ -431,13 +431,19 @@
         else:
             self.state = self.STATE_DISCONNECTED
 
+            if self.uri.find("+ssh://") > 0:
+                  hint = "\nMaybe you need to install ssh-askpass " + \
+                         "in order to authenticate."
+            else:
+                  hint = ""
+
             (_type, value, stacktrace) = open_error
             # Detailed error message, in English so it can be Googled.
             self.connectError = \
                     ("Unable to open connection to hypervisor URI '%s':\n" %
                      str(self.uri)) + \
                     str(_type) + " " + str(value) + "\n" + \
-                    traceback.format_exc (stacktrace)
+                    traceback.format_exc (stacktrace) + hint
             logging.error(self.connectError)
 
         # We want to kill off this thread asap, so schedule a gobject


More information about the et-mgmt-tools mailing list