[virt-tools-list] [PATCH virt-manager] virt-manager: use DISPLAY in the error message only when it is set

Giuseppe Scrivano gscrivan at redhat.com
Tue Dec 24 09:34:37 UTC 2013


Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1038496
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 virt-manager | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virt-manager b/virt-manager
index eab9675..1f58655 100755
--- a/virt-manager
+++ b/virt-manager
@@ -214,7 +214,7 @@ def main():
         # it avoids the issue
         display = os.environ.get("DISPLAY", "")
         msg = str(e)
-        if not display:
+        if display:
             msg += ": Could not open display: %s" % display
         logging.debug("".join(traceback.format_exc()))
         print msg
-- 
1.8.3.1




More information about the virt-tools-list mailing list