Skip to content

Commit

Permalink
Paint it black
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Mar 7, 2024
1 parent 30c5359 commit a3aa1e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contrib/scripts/isc_dhpcd_graphite/isc_dhpcd_graphite.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"touched": "touch",
"free": "free",
}
VERSION="0.2"
VERSION = "0.2"


Metric = namedtuple("Metric", ["path", "value", "timestamp"])
Expand Down Expand Up @@ -138,8 +138,10 @@ def parse_args():
def get_config_from_args(args):
config = None
if getattr(args, "extract_vlan", False):

class Config:
pass

config = Config()
config.extract_vlan = True
return config
Expand Down Expand Up @@ -172,7 +174,7 @@ def _render_text(jsonblob, prefix, config=None):
return "".join(output).encode("ascii")


def _render_pickle(jsonblob, prefix, protocol,config=None):
def _render_pickle(jsonblob, prefix, protocol, config=None):
input = _tuplify(jsonblob, prefix, config)
output = []
for metric in input:
Expand Down

0 comments on commit a3aa1e8

Please sign in to comment.