diff options
author | Alexey Rokhin <arokhin@mail.ru> | 2017-05-17 23:18:18 +0300 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2017-05-17 16:06:23 -0700 |
commit | f6f5652eb265fb8311b1e6ad4b16979b9808f908 (patch) | |
tree | bc8900a5ef934f50a96d79e8dbb23d1ef9eb31d0 | |
parent | 7af7e1b73adbbe9385ee052ebd3755a1a62652f2 (diff) | |
download | docker-py-AlexeyRokhin-master.tar.gz |
fix type checking for nano_cpusAlexeyRokhin-master
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
-rw-r--r-- | docker/types/containers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/types/containers.py b/docker/types/containers.py index 18d1838..f33c5e8 100644 --- a/docker/types/containers.py +++ b/docker/types/containers.py @@ -466,7 +466,7 @@ class HostConfig(dict): self['CpuPercent'] = cpu_percent if nano_cpus: - if not isinstance(nano_cpus, int): + if not isinstance(nano_cpus, six.integer_types): raise host_config_type_error('nano_cpus', nano_cpus, 'int') if version_lt(version, '1.25'): raise host_config_version_error('nano_cpus', '1.25') |