Révision a47b05ae
knot: use os.path.join, don't hardcode "/"
| plugins/knot/knot | ||
|---|---|---|
| 122 | 122 |
|
| 123 | 123 |
# After server reboot output can be almost empty. Use cached results |
| 124 | 124 |
# instead, needed for plugin config when using munin-async. |
| 125 |
cachename = os.getenv('MUNIN_PLUGSTATE') + '/knot.state'
|
|
| 125 |
cachename = os.path.join(os.getenv('MUNIN_PLUGSTATE'), 'knot.state')
|
|
| 126 | 126 |
if len(output) > 2048: |
| 127 | 127 |
with open(cachename, 'wt') as cache: |
| 128 | 128 |
cache.write(output) |
Formats disponibles : Unified diff