[virt-tools-list] [virt-manager PATCH] details: show port number for console device in hwlist

Chen Hanxiao chen_han_xiao at 126.com
Tue Feb 4 13:46:16 UTC 2014



On 02/04/2014 02:57 AM, Cole Robinson wrote:
> On 02/03/2014 11:32 AM, Chen Hanxiao wrote:
>> From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
>>
>> We could see more than one console devices
>> in hwlist because of multi console support.
>> This patch will show port number of console device
>> in hwlist.
>>
>> Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
>> ---
>>   virtManager/details.py | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/virtManager/details.py b/virtManager/details.py
>> index 033ea10..6c21ced 100644
>> --- a/virtManager/details.py
>> +++ b/virtManager/details.py
>> @@ -3151,7 +3151,7 @@ class vmmDetails(vmmGObjectUI):
>>               port = chardev.target_port
>>
>>               label = devtype.capitalize()
>> -            if devtype in ["serial", "parallel"]:
>> +            if devtype in ["serial", "parallel", "console"]:
>>                   label += " %s" % (int(port) + 1)
>>               elif devtype == "channel":
>>                   name = chardev.pretty_channel_name(chardev.target_name)
>>
>
> ACK
>
Thanks, pushed.




More information about the virt-tools-list mailing list