[virt-tools-list] [PATCH virt-manager] virt-manager: use DISPLAY in the error message only when it is set
Cole Robinson
crobinso at redhat.com
Thu Jan 2 18:31:38 UTC 2014
On 12/24/2013 04:34 AM, Giuseppe Scrivano wrote:
> 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
>
ACK
- Cole
More information about the virt-tools-list
mailing list