Stop throwing TypeErrors (#43036)

This commit is contained in:
Joe Abbey 2018-07-22 02:31:46 -04:00 committed by ansibot
parent b02e0c07d8
commit a9b077f763

View file

@ -327,7 +327,7 @@ def format_disk_size(size_bytes, unit):
# Shortcut # Shortcut
if size_bytes == 0: if size_bytes == 0:
return 0.0 return 0.0, 'b'
# Cases where we default to 'compact' # Cases where we default to 'compact'
if unit in ['', 'compact', 'cyl', 'chs']: if unit in ['', 'compact', 'cyl', 'chs']: