diff --git a/lib/ansible/modules/system/parted.py b/lib/ansible/modules/system/parted.py index 5b43742718a..5ef98adfc87 100644 --- a/lib/ansible/modules/system/parted.py +++ b/lib/ansible/modules/system/parted.py @@ -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']: