Projet

Général

Profil

Révision a47b05ae

IDa47b05ae118c17c9e336a543a74f92a7de36e596
Parent 97596349
Enfant a1e346bc

Ajouté par Kim B. Heino il y a plus de 4 ans

knot: use os.path.join, don't hardcode "/"

Voir les différences:

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