From a47b05ae118c17c9e336a543a74f92a7de36e596 Mon Sep 17 00:00:00 2001 From: "Kim B. Heino" Date: Fri, 2 Apr 2021 22:54:18 +0300 Subject: [PATCH] knot: use os.path.join, don't hardcode "/" --- plugins/knot/knot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/knot/knot b/plugins/knot/knot index d512adea..5d585c38 100755 --- a/plugins/knot/knot +++ b/plugins/knot/knot @@ -122,7 +122,7 @@ def get_stats(): # After server reboot output can be almost empty. Use cached results # instead, needed for plugin config when using munin-async. - cachename = os.getenv('MUNIN_PLUGSTATE') + '/knot.state' + cachename = os.path.join(os.getenv('MUNIN_PLUGSTATE'), 'knot.state') if len(output) > 2048: with open(cachename, 'wt') as cache: cache.write(output)