WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Fix xm network-list/block-list/vtpm-list

Hi Bastian,

Thanks for your comment. I send new patch.


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

>> diff -r 411a3c01bb40 tools/python/xen/xm/main.py
>> --- a/tools/python/xen/xm/main.py    Tue Jun 20 18:51:46 2006 +0100
>> +++ b/tools/python/xen/xm/main.py    Thu Jun 22 15:50:35 2006 +0900
>> @@ -276,7 +276,13 @@ for command in all_commands:
>>  ####################################################################
>>  
>>  def arg_check(args, name, lo, hi = -1):
>> -    n = len(args)
>> +    # remove split(--) from args
>> +    new_args = []
>> +    for x in args:
>> +        if x != '--':
>> +            new_args.append(x)
>> +
>> +    n = len(new_args)
>
>You don't mean "n = len([i for i in args if i != '--'])"?
>
>Bastian
>
>-- 
>Extreme feminine beauty is always disturbing.
>               -- Spock, "The Cloud Minders", stardate 5818.4
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-devel

Attachment: arg_check.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel