]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Put a new line char after <alias/> in attach-disk v5.3.0-rc1
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Apr 2019 12:07:47 +0000 (14:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Apr 2019 12:07:47 +0000 (14:07 +0200)
Each attribute is on its own line. We forgot to add new line
character for <alias/>

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c

index da57d96d1a3d0b48269956d74b41e4bcfd400e2d..82140feb576e6a2ca988c14726d5b36f95542193 100644 (file)
@@ -683,7 +683,7 @@ cmdAttachDisk(vshControl *ctl, const vshCmd *cmd)
         virBufferAsprintf(&buf, "<serial>%s</serial>\n", serial);
 
     if (alias)
-        virBufferAsprintf(&buf, "<alias name='%s'/>", alias);
+        virBufferAsprintf(&buf, "<alias name='%s'/>\n", alias);
 
     if (wwn)
         virBufferAsprintf(&buf, "<wwn>%s</wwn>\n", wwn);