From: Michal Privoznik Date: Wed, 18 Oct 2017 11:12:08 +0000 (+0200) Subject: conf: Format alias even for inactive XMLs X-Git-Tag: v3.9.0-rc1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0429e52f19d77752658cbc4b745103188650b2ea;p=thirdparty%2Flibvirt.git 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 --- 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",