Skip to content

Commit f6f5652

Browse files
AlexeyRokhinshin-
authored andcommitted
fix type checking for nano_cpus
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
1 parent 7af7e1b commit f6f5652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/types/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def __init__(self, version, binds=None, port_bindings=None,
466466
self['CpuPercent'] = cpu_percent
467467

468468
if nano_cpus:
469-
if not isinstance(nano_cpus, int):
469+
if not isinstance(nano_cpus, six.integer_types):
470470
raise host_config_type_error('nano_cpus', nano_cpus, 'int')
471471
if version_lt(version, '1.25'):
472472
raise host_config_version_error('nano_cpus', '1.25')

0 commit comments

Comments
 (0)