[libvirt] [PATCH] Give correct error message when configure a wrong URI aliase.

Eric Blake eblake at redhat.com
Tue Nov 22 22:28:32 UTC 2011


On 11/22/2011 02:36 AM, Daniel P. Berrange wrote:
> On Tue, Nov 22, 2011 at 11:27:04AM +0800, taget at linux.vnet.ibm.com wrote:
>> From: Eli Qiao <taget at linux.vnet.ibm.com>
>>
>> Signed-off-by: Eli Qiao <taget at linux.vnet.ibm.com>
>>
>> When configure the URI aliase like this in 'libvirt.conf':
>>
>> uri_aliases = [
>>   "jj#j=qemu+ssh://root@127.0.0.1/system",
>>   "sleet=qemu+ssh://root@sleet.cloud.example.com/system",
>> ]
>> virsh -c jj#j
>>
>> It will show this error message:
>> 'no connection driver available for No connection for URI jj#j'
>> Actually ,we expect this message below:
>> Malformed 'uri_aliases' config entry 'jj#j=qemu+ssh://root@127.0.0.1/system', aliases may only container 'a-Z, 0-9, _, -'
>>
>> Give this patch to fix this error.

'git am' did not like this message, for some reason.  I think I got it
to apply correctly, though.

> 
> ACK, this is OK, since we still validate the URI_ALIAS_CHARS later on

Now pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111122/7ee86980/attachment-0001.sig>


More information about the libvir-list mailing list