mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
conf: Format alias even for inactive XMLs
We need to format alias even for inactive XMLs since that's the way how users are going to identify their devices. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
821b0b295d
commit
0429e52f19
@ -5962,10 +5962,9 @@ virDomainDeviceInfoFormat(virBufferPtr buf,
|
||||
|
||||
virBufferAddLit(buf, "/>\n");
|
||||
}
|
||||
if (info->alias &&
|
||||
!(flags & VIR_DOMAIN_DEF_FORMAT_INACTIVE)) {
|
||||
|
||||
if (info->alias)
|
||||
virBufferAsprintf(buf, "<alias name='%s'/>\n", info->alias);
|
||||
}
|
||||
|
||||
if (info->mastertype == VIR_DOMAIN_CONTROLLER_MASTER_USB) {
|
||||
virBufferAsprintf(buf, "<master startport='%d'/>\n",
|
||||
|
Loading…
Reference in New Issue
Block a user