aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-03-13 11:30:52 +0000
committerBryn M. Reeves <bmr@redhat.com>2018-03-13 11:31:33 +0000
commit54ac8c1ab31ea6ea0b99385bce9ec9d5e2d7c5d6 (patch)
treeee6bc904959f24584b321414dd761f995f389436
parent3f31c4c2c5d241081ab2bbe458543277bc1aea68 (diff)
downloadsos-54ac8c1ab31ea6ea0b99385bce9ec9d5e2d7c5d6.tar.gz
[iprconfig] style fixes
Fix format value style and add VIM mode tags. Fixes: #575 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/iprconfig.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/sos/plugins/iprconfig.py b/sos/plugins/iprconfig.py
index b20f3f29..d93e48f8 100644
--- a/sos/plugins/iprconfig.py
+++ b/sos/plugins/iprconfig.py
@@ -57,10 +57,9 @@ class IprConfig(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
devices.append(temp[0])
for device in devices:
- self.add_cmd_output("iprconfig -c show-details %s" % (device,))
- self.add_cmd_output("iprconfig -c show-battery-info %s" % (
- device,))
- self.add_cmd_output("iprconfig -c show-perf %s" % (device,))
+ self.add_cmd_output("iprconfig -c show-details %s" % device)
+ self.add_cmd_output("iprconfig -c show-battery-info %s" % device)
+ self.add_cmd_output("iprconfig -c show-perf %s" % device)
# Look for IBM Power RAID enclosures (iprconfig lists them)
show_config = self.call_ext_prog("iprconfig -c show-config")
@@ -114,4 +113,6 @@ class IprConfig(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
temp = line.split(' ')
# temp[0] holds device name
self.add_cmd_output("iprconfig -c "
- "query-ses-mode %s" % (temp[0],))
+ "query-ses-mode %s" % temp[0])
+
+# vim: set et ts=4 sw=4 :