summaryrefslogtreecommitdiffstats
path: root/python.d/hddtemp.chart.py
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2016-11-23 15:49:10 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2016-11-23 15:49:10 +0000
commit87649cf32bd0e14d5a903fb85b01e9f41a253540 (patch)
treebbefda6dac074aeb87529592e8e5064f69cbe024 /python.d/hddtemp.chart.py
parentImported Upstream version 1.3.0+dfsg (diff)
downloadnetdata-87649cf32bd0e14d5a903fb85b01e9f41a253540.tar.xz
netdata-87649cf32bd0e14d5a903fb85b01e9f41a253540.zip
New upstream version 1.4.0+dfsgupstream/1.4.0+dfsg
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 4271001b..465bfdfa 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