mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh: Fix printing of XML for pool-create-as
https://bugzilla.redhat.com/show_bug.cgi?id=1224088 commit id 'bd00e00e' neglected to add the new adapter source options into the if condition that allowed printing the <source> XML fields. The <adapter type='fc_host'.../> doesn't require other options in order to be complete.
This commit is contained in:
parent
9e460562da
commit
cffc099356
@ -284,7 +284,8 @@ vshBuildPoolXML(vshControl *ctl,
|
||||
virBufferAsprintf(&buf, "<pool type='%s'>\n", type);
|
||||
virBufferAdjustIndent(&buf, 2);
|
||||
virBufferAsprintf(&buf, "<name>%s</name>\n", name);
|
||||
if (srcHost || srcPath || srcDev || srcFormat || srcName) {
|
||||
if (srcHost || srcPath || srcDev || srcFormat || srcName ||
|
||||
(adapterWwnn && adapterWwpn) || adapterName) {
|
||||
virBufferAddLit(&buf, "<source>\n");
|
||||
virBufferAdjustIndent(&buf, 2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user