1
0
Fork 0
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:
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
if size_bytes == 0:
return 0.0
return 0.0, 'b'
# Cases where we default to 'compact'
if unit in ['', 'compact', 'cyl', 'chs']: