summaryrefslogtreecommitdiffstats
path: root/python.d/hddtemp.chart.py
diff options
context:
space:
mode:
Diffstat (limited to 'python.d/hddtemp.chart.py')
-rw-r--r--python.d/hddtemp.chart.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python.d/hddtemp.chart.py b/python.d/hddtemp.chart.py
index 4271001b7..465bfdfa2 100644
--- a/python.d/hddtemp.chart.py
+++ b/python.d/hddtemp.chart.py
@@ -44,7 +44,7 @@ class Service(SocketService):
def _get_disks(self):
try:
disks = self.configuration['devices']
- print(disks)
+ self.info("Using configured disks" + str(disks))
except (KeyError, TypeError) as e:
self.info("Autodetecting disks")
return ["/dev/" + f for f in os.listdir("/dev") if len(f) == 3 and f.startswith("sd")]
@@ -53,8 +53,7 @@ class Service(SocketService):
for disk in disks:
if not disk.startswith('/dev/'):
disk = "/dev/" + disk
- if os.path.exists(disk):
- ret.append(disk)
+ ret.append(disk)
if len(ret) == 0:
self.error("Provided disks cannot be found in /dev directory.")
return ret