[Kimchi-devel] [WIP][PATCH 1/4] Storage volume upload: Dispatch volume create to right handler

Crístian Viana vianac at linux.vnet.ibm.com
Tue Aug 26 17:52:04 UTC 2014


On 21-08-2014 15:55, Aline Manera wrote:
>> diff --git a/src/kimchi/i18n.py b/src/kimchi/i18n.py
>> index 2eae7e8..26b916b 100644
>> --- a/src/kimchi/i18n.py
>> +++ b/src/kimchi/i18n.py
>> @@ -185,6 +185,7 @@ messages = {
>>       "KCHVOL0015E": _("Storage volume format not supported"),
>>       "KCHVOL0016E": _("Storage volume requires a volume name"),
>>       "KCHVOL0017E": _("Unable to update database with storage volume 
>> information due error: %(err)s"),
>> +    "KCHVOL0018E": _("Only one of %(param)s can be specified"),
>
> From the code above, %(param)s will be always "file, url, capacity" so 
> we can include them to the string and avoid the placeholder

The dict "vol_source" is also used somewhere else in the code other than 
filling this placeholder (i.e. to validate the parameters) so I think 
it's worth to have its values outside the error string.




More information about the Kimchi-devel mailing list