From 0429e52f19d77752658cbc4b745103188650b2ea Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 18 Oct 2017 13:12:08 +0200 Subject: [PATCH] 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 --- src/conf/domain_conf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 05e363dbcd..77c20c6972 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -5962,10 +5962,9 @@ virDomainDeviceInfoFormat(virBufferPtr buf, virBufferAddLit(buf, "/>\n"); } - if (info->alias && - !(flags & VIR_DOMAIN_DEF_FORMAT_INACTIVE)) { + + if (info->alias) virBufferAsprintf(buf, "\n", info->alias); - } if (info->mastertype == VIR_DOMAIN_CONTROLLER_MASTER_USB) { virBufferAsprintf(buf, "\n",