From 797686075a4841ec0ca022d71a3e9f3ac4d07064 Mon Sep 17 00:00:00 2001
From: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Fri, 3 Jan 2014 12:27:59 +0100
Subject: [RHEL-7.0 virt-manager PATCH] virt-manager: use DISPLAY in the error
message only when it is set
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1038496
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
(cherry picked from commit 0724f1cdaa6c66aed5c32c94dc3c8ae1d8eb68e3)
---
virt-manager | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/virt-manager b/virt-manager
index 55cc30a..4c26524 100755
--- a/virt-manager
+++ b/virt-manager
@@ -241,7 +241,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.5.2