From b12cc909a9e525ea6b6ca49955df5bd61b24237a Mon Sep 17 00:00:00 2001 From: Antti Rasinen Date: Tue, 16 Jul 2013 13:09:56 +0300 Subject: [PATCH] Fix pretty_bytes for exa- and zettabytes --- lib/ansible/module_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index 6ce2a880b3c..d61e2aa8d2d 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -927,8 +927,8 @@ class AnsibleModule(object): def pretty_bytes(self,size): ranges = ( - (1<<50L, 'ZB'), - (1<<50L, 'EB'), + (1<<70L, 'ZB'), + (1<<60L, 'EB'), (1<<50L, 'PB'), (1<<40L, 'TB'), (1<<30L, 'GB'),