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