mirror of https://github.com/docker/docker-py.git
fix type checking for nano_cpus
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
This commit is contained in:
parent
7af7e1b73a
commit
f6f5652eb2
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue