mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Stop throwing TypeErrors (#43036)
This commit is contained in:
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user