[node-patches] Change in ovirt-node[master]: fix pep8 string sub in get_system_nics

jboggs at redhat.com jboggs at redhat.com
Mon Nov 5 21:18:00 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: fix pep8 string sub in get_system_nics
......................................................................

fix pep8 string sub in get_system_nics

rhbz#872083

Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: I9c1cde51192e78602947d4fe150e07ec0caffea9
---
M scripts/ovirtnode/network.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/41/9041/1

diff --git a/scripts/ovirtnode/network.py b/scripts/ovirtnode/network.py
index 23ba228..13fd063 100644
--- a/scripts/ovirtnode/network.py
+++ b/scripts/ovirtnode/network.py
@@ -459,8 +459,8 @@
                         pci_dev = dev_path[3].replace("0000:", "")
                     else:
                         pci_dev = dev_path[4].replace("0000:", "")
-                    pci_lookup_cmd = ((" lspci|grep %s|awk -F \":\" " +
-                                     "{'print $3'}" % pci_dev))
+                    pci_lookup_cmd = (("lspci|grep %s|awk -F \":\" " % pci_dev +
+                                     "{'print $3'}"))
                     pci_lookup = _functions.subprocess_closefds(pci_lookup_cmd,
                                  shell=True, stdout=subprocess.PIPE,
                                  stderr=subprocess.STDOUT)


--
To view, visit http://gerrit.ovirt.org/9041
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c1cde51192e78602947d4fe150e07ec0caffea9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list