[virt-tools-list] [virt-manager PATCH] addstorage: removing whitespace for storage path

Chen Hanxiao chen_han_xiao at 126.com
Wed Apr 9 15:34:16 UTC 2014


On 04/09/2014 11:03 PM, Cole Robinson wrote:
> On 04/09/2014 06:00 AM, Chen Hanxiao wrote:
>> virtinst util validate_name can't accept name
>> with whitespaces aroud it.
>> Remove it when getting text from UI.
>>
>> Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
>> ---
>>   virtManager/addstorage.py | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/virtManager/addstorage.py b/virtManager/addstorage.py
>> index ff7b7ce..b481fcb 100644
>> --- a/virtManager/addstorage.py
>> +++ b/virtManager/addstorage.py
>> @@ -318,7 +318,7 @@ class vmmAddStorage(vmmGObjectUI):
>>                   if is_default:
>>                       path = self.get_default_path(vmname, collidelist)
>>                   else:
>> -                    path = self.widget("config-storage-entry").get_text()
>> +                    path = self.widget("config-storage-entry").get_text().strip()
>>   
>>               if is_default:
>>                   path = self._check_ideal_path(path, vmname, collidelist)
>>
> ACK
>
> - Cole

Thanks, pushed.

-Chen
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
>





More information about the virt-tools-list mailing list