summaryrefslogtreecommitdiff
path: root/docker/types/containers.py
diff options
context:
space:
mode:
Diffstat (limited to 'docker/types/containers.py')
-rw-r--r--docker/types/containers.py2
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')