diff options
| author | Jeff Lane <jeffrey.lane@canonical.com> | 2014-09-11 11:25:57 -0400 | 
|---|---|---|
| committer | Jeff Lane <jeffrey.lane@canonical.com> | 2014-09-11 11:25:57 -0400 | 
| commit | ed2223842efc68329ba7a3df9ff11a2a020346b5 (patch) | |
| tree | 345848e01344a44b7bfd6db370d8449fcded5987 /bin | |
| parent | 9241f99095bf2d9187f41c10674eaae0d3aeff65 (diff) | |
changed from type() to isinstance() per comment from zyga
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/disk_smart | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/bin/disk_smart b/bin/disk_smart index 8d619697..c7f58dfa 100755 --- a/bin/disk_smart +++ b/bin/disk_smart @@ -216,7 +216,7 @@ def main():  time.sleep(args.sleep)  current_entries = get_smart_entries(disk) - if type(current_entries[0]) is str: + if isinstance(current_entries[0], str):  logging.debug(current_entries[0])  else:  logging.debug('%s %s %s %s' % (current_entries[0]['number'], | 
