mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Stop throwing TypeErrors (#43036)
This commit is contained in:
parent
b02e0c07d8
commit
a9b077f763
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ def format_disk_size(size_bytes, unit):
|
|||
|
||||
# Shortcut
|
||||
if size_bytes == 0:
|
||||
return 0.0
|
||||
return 0.0, 'b'
|
||||
|
||||
# Cases where we default to 'compact'
|
||||
if unit in ['', 'compact', 'cyl', 'chs']:
|
||||
|
|
Loading…
Reference in a new issue