fix type checking for nano_cpus

Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
This commit is contained in:
Alexey Rokhin 2017-05-17 23:18:18 +03:00 committed by Joffrey F
parent 7af7e1b73a
commit f6f5652eb2
1 changed files with 1 additions and 1 deletions

View File

@ -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')