Skip to content

Commit deea0c2

Browse files
committed
Paint it black
1 parent 4c88319 commit deea0c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contrib/scripts/isc_dhpcd_graphite/isc_dhpcd_graphite.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"touched": "touch",
3737
"free": "free",
3838
}
39-
VERSION="0.2"
39+
VERSION = "0.2"
4040

4141

4242
Metric = namedtuple("Metric", ["path", "value", "timestamp"])
@@ -138,8 +138,10 @@ def parse_args():
138138
def get_config_from_args(args):
139139
config = None
140140
if getattr(args, "extract_vlan", False):
141+
141142
class Config:
142143
pass
144+
143145
config = Config()
144146
config.extract_vlan = True
145147
return config
@@ -172,7 +174,7 @@ def _render_text(jsonblob, prefix, config=None):
172174
return "".join(output).encode("ascii")
173175

174176

175-
def _render_pickle(jsonblob, prefix, protocol,config=None):
177+
def _render_pickle(jsonblob, prefix, protocol, config=None):
176178
input = _tuplify(jsonblob, prefix, config)
177179
output = []
178180
for metric in input:

0 commit comments

Comments
 (0)