summaryrefslogtreecommitdiff
path: root/lorry-controller-minion
diff options
context:
space:
mode:
Diffstat (limited to 'lorry-controller-minion')
-rwxr-xr-xlorry-controller-minion3
1 files changed, 3 insertions, 0 deletions
diff --git a/lorry-controller-minion b/lorry-controller-minion
index 0412629..4f3069e 100755
--- a/lorry-controller-minion
+++ b/lorry-controller-minion
@@ -298,6 +298,9 @@ class MINION(cliapp.Application):
def disk_usage_by_dir(self, dirname):
exit, out, err = cliapp.runcmd_unchecked(['du', '-sk', dirname])
+ if isinstance(out, bytes):
+ out = out.decode('utf-8', errors='replace')
+ err = err.decode('utf-8', errors='replace')
if exit:
logging.error('du -sk %s failed: %r', dirname, err)
return 0