render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
51d9a2
From 2190ddeef7b0f43ef38512915ba4a666e844d39c Mon Sep 17 00:00:00 2001
51d9a2
Message-Id: <2190ddeef7b0f43ef38512915ba4a666e844d39c@dist-git>
51d9a2
From: John Ferlan <jferlan@redhat.com>
51d9a2
Date: Fri, 20 Jul 2018 07:52:12 -0400
51d9a2
Subject: [PATCH] tools: Fix typo generating adapter_wwpn field
51d9a2
51d9a2
https://bugzilla.redhat.com/show_bug.cgi?id=1601377
51d9a2
51d9a2
Fix typo from commit id d45bee449 for the parent_wwpn field
51d9a2
resulting in parent_wwnn being printed twice.
51d9a2
51d9a2
Signed-off-by: John Ferlan <jferlan@redhat.com>
51d9a2
Reviewed-by: Erik Skultety <eskultet@redhat.com>
51d9a2
(cherry picked from commit 313eaae3b5a4f9b1e94b153759b878614caecf34)
51d9a2
Reviewed-by: Erik Skultety <eskultet@redhat.com>
51d9a2
---
51d9a2
 tools/virsh-pool.c | 2 +-
51d9a2
 1 file changed, 1 insertion(+), 1 deletion(-)
51d9a2
51d9a2
diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c
51d9a2
index cc49a5b96d..6faff781b2 100644
51d9a2
--- a/tools/virsh-pool.c
51d9a2
+++ b/tools/virsh-pool.c
51d9a2
@@ -371,7 +371,7 @@ virshBuildPoolXML(vshControl *ctl,
51d9a2
             if (adapterParent)
51d9a2
                 virBufferAsprintf(&buf, " parent='%s'", adapterParent);
51d9a2
             else if (adapterParentWwnn && adapterParentWwpn)
51d9a2
-                virBufferAsprintf(&buf, " parent_wwnn='%s' parent_wwnn='%s'",
51d9a2
+                virBufferAsprintf(&buf, " parent_wwnn='%s' parent_wwpn='%s'",
51d9a2
                                   adapterParentWwnn, adapterParentWwpn);
51d9a2
             else if (adapterParentFabricWwn)
51d9a2
                 virBufferAsprintf(&buf, " parent_fabric_wwn='%s'",
51d9a2
-- 
51d9a2
2.18.0
51d9a2