mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
conf: Fix XML generation for smartcards
When formatting XML for smartcard device with mode=host, libvirt generates invalid XML if the device has address info associated: <smartcard mode='host' <address type='ccid' controller='0' slot='1'/>
This commit is contained in:
parent
41f551e25e
commit
f7bec64913
@ -7058,6 +7058,7 @@ virDomainSmartcardDefFormat(virBufferPtr buf,
|
|||||||
virBufferAddLit(buf, "/>\n");
|
virBufferAddLit(buf, "/>\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
virBufferAddLit(buf, ">\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_SMARTCARD_TYPE_HOST_CERTIFICATES:
|
case VIR_DOMAIN_SMARTCARD_TYPE_HOST_CERTIFICATES:
|
||||||
|
Loading…
Reference in New Issue
Block a user