summaryrefslogtreecommitdiff
diff options
authorDaniel Manrique <roadmr@ubuntu.com>2015-02-13 11:22:22 -0500
committerDaniel Manrique <roadmr@ubuntu.com>2015-02-13 11:22:22 -0500
commitc786359ca6f79a12f07c1fddc513ac57900ad7b2 (patch)
tree6a19039603be5c2470b3857c9bc605bf9c4f3e00
parent3b801abc0ee6c208e90edf1294a2c28f4a44e318 (diff)
providers:checkbox: Fix behavior of disk_smart if getting the log is not supported (LP: #1421080)
-rwxr-xr-xbin/disk_smart2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/disk_smart b/bin/disk_smart
index ff3e102d..7e6929f9 100755
--- a/bin/disk_smart
+++ b/bin/disk_smart
@@ -234,7 +234,7 @@ def poll_for_status(args, disk, previous_entries):
if args.timeout is not None:
if args.timeout <= 0:
logging.debug('Polling timed out')
- return 1
+ return 'Polling timed out', 1
else:
args.timeout -= args.sleep