Dzahn has submitted this change and it was merged.

Change subject: ganglia: udp_stats.py: bunch of pep8 fixes
......................................................................


ganglia: udp_stats.py: bunch of pep8 fixes

Change-Id: I5da591c107a3b47726f50aafb4d38be05aef16a8
---
M modules/ganglia/files/plugins/udp_stats.py
1 file changed, 14 insertions(+), 14 deletions(-)

Approvals:
  jenkins-bot: Verified
  Dzahn: Looks good to me, approved



diff --git a/modules/ganglia/files/plugins/udp_stats.py 
b/modules/ganglia/files/plugins/udp_stats.py
index 1f57fde..28be8cb 100644
--- a/modules/ganglia/files/plugins/udp_stats.py
+++ b/modules/ganglia/files/plugins/udp_stats.py
@@ -7,7 +7,6 @@
     :copyright: (c) 2012 Wikimedia Foundation
     :author: Ori Livneh <[email protected]>
     :license: GPL
-    
 """
 from __future__ import print_function
 
@@ -19,24 +18,25 @@
 UPDATE_INTERVAL = 5  # seconds
 
 defaults = {
-    "slope"      : "positive",
-    "time_max"   : 60,
-    "format"     : "%u",
-    "value_type" : "uint",
-    "groups"     : "network",
-    "units"      : "packets"
+    "slope": "positive",
+    "time_max": 60,
+    "format": "%u",
+    "value_type": "uint",
+    "groups": "network",
+    "units": "packets"
 }
 
 # Prefix names sent to ganglia with this.
 ganglia_name_prefix = "UDP_"
 
 udp_fields = {
-    "%sInDatagrams"  % (ganglia_name_prefix) : "UDP Packets Received",
-    "%sNoPorts"      % (ganglia_name_prefix) : "UDP Packets to Unknown Port 
Received",
-    "%sInErrors"     % (ganglia_name_prefix) : "UDP Packet Receive Errors",
-    "%sOutDatagrams" % (ganglia_name_prefix) : "UDP Packets Sent",
-    "%sRcvbufErrors" % (ganglia_name_prefix) : "UDP Receive Buffer Errors",
-    "%sSndbufErrors" % (ganglia_name_prefix) : "UDP Send Buffer Errors"
+    "%sInDatagrams" % (ganglia_name_prefix): "UDP Packets Received",
+    "%sNoPorts" % (ganglia_name_prefix):
+        "UDP Packets to Unknown Port Received",
+    "%sInErrors" % (ganglia_name_prefix): "UDP Packet Receive Errors",
+    "%sOutDatagrams" % (ganglia_name_prefix): "UDP Packets Sent",
+    "%sRcvbufErrors" % (ganglia_name_prefix): "UDP Receive Buffer Errors",
+    "%sSndbufErrors" % (ganglia_name_prefix): "UDP Send Buffer Errors"
 }
 
 netstats = {}
@@ -93,4 +93,4 @@
     logging.basicConfig(level=logging.DEBUG)
     for metric in metric_init({}):
         value = metric['call_back'](metric['name'])
-        print(( "%s => " + metric['format'] ) % ( metric['name'], value ))
+        print(("%s => " + metric['format']) % (metric['name'], value))

-- 
To view, visit https://gerrit.wikimedia.org/r/265104
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5da591c107a3b47726f50aafb4d38be05aef16a8
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to