[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
Fri Jan 3 09:03:32 UTC 2014


Cole Robinson <crobinso at redhat.com> writes:

> 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

Pushed now.

Giuseppe




More information about the virt-tools-list mailing list