mirror of https://github.com/docker/compose.git
Fix cpu option checking.
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
This commit is contained in:
parent
0043dc4fab
commit
faaca661ac
|
@ -802,7 +802,7 @@ class Service(object):
|
||||||
options['init'] = True
|
options['init'] = True
|
||||||
|
|
||||||
nano_cpus = None
|
nano_cpus = None
|
||||||
if options.has_key('cpus'):
|
if 'cpus' in options:
|
||||||
nano_cpus = int(options.get('cpus') * 1000000000)
|
nano_cpus = int(options.get('cpus') * 1000000000)
|
||||||
|
|
||||||
return self.client.create_host_config(
|
return self.client.create_host_config(
|
||||||
|
|
Loading…
Reference in New Issue