From a9b077f763747f44ba692f2adbdf36ac59150b58 Mon Sep 17 00:00:00 2001 From: Joe Abbey Date: Sun, 22 Jul 2018 02:31:46 -0400 Subject: [PATCH] Stop throwing TypeErrors (#43036) --- lib/ansible/modules/system/parted.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']: