[Sensors] sensors module: sensors_get_sensors_list() hddtemp bug

Bug #276206 reported by cmichael
2
Affects Status Importance Assigned to Milestone
Individual Screenlets
Fix Released
Medium
Unassigned

Bug Description

In the module "sensors" there is a little bug in "sensors_get_sensors_list()"
The return() is wrongly indented and is not called in normal function.

starting with line 921:

 if res[0] == 0:
  try:
   hddtemp_data = res[1].lstrip('|').rstrip('|')
   sol = hddtemp_data.split('||')
   for i in sol:
    if len(i)>1:
     lst = i.split('|')
     output.append("hddtemp sensor "+lst[0]+": "+lst[2]+" "+lst[3])
  except:
   print(_('Error during hddtemp drives search'))
 else:
  print(_('Hddtemp not installed'))
  return output

So this return only need to be indented correctly (one tab-stop less) so it look like:
-----
 else:
  print(_('Hddtemp not installed'))

 return output
----

best regards
cmichael

Märt Põder (boamaod)
Changed in screenlets:
status: New → Fix Committed
Papp Bence (sclegnrbs)
affects: screenlets → indiv-screenlets
summary: - sensors module: sensors_get_sensors_list() hddtemp bug
+ [Sensors] sensors module: sensors_get_sensors_list() hddtemp bug
Changed in indiv-screenlets:
importance: Undecided → Medium
Märt Põder (boamaod)
Changed in indiv-screenlets:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.