render / rpms / libvirt

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