[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.