diff --git a/cloud/docker/_docker.py b/cloud/docker/_docker.py index e5d80f74811..4d39898e1b3 100644 --- a/cloud/docker/_docker.py +++ b/cloud/docker/_docker.py @@ -562,6 +562,8 @@ def _human_to_bytes(number): if isinstance(number, int): return number + if number.isdigit(): + return int(number) if number[-1] == suffixes[0] and number[-2].isdigit(): return number[:-1] @@ -1853,7 +1855,7 @@ def main(): volumes_from = dict(default=None, type='list'), links = dict(default=None, type='list'), devices = dict(default=None, type='list'), - memory_limit = dict(default=0, type='int'), + memory_limit = dict(default=0), memory_swap = dict(default=0, type='int'), cpu_shares = dict(default=0, type='int'), docker_url = dict(),