df plugin replaces with _ and not -

Part of #348
This commit is contained in:
Girish Ramakrishnan
2017-08-15 09:28:43 -07:00
parent afcb3dd237
commit 9e558924bb
+1 -1
View File
@@ -14,7 +14,7 @@ def read():
for d in disks:
device = d[0]
if 'devicemapper' in d[1] or not device.startswith('/dev/'): continue
instance = device[len('/dev/'):].replace('/', '-')
instance = device[len('/dev/'):].replace('/', '_') # see #348
try:
st = os.statvfs(d[1]) # handle disk removal