mirror of
https://github.com/docker/compose.git
synced 2026-06-25 18:48:47 +00:00
Fix cpu option checking.
Signed-off-by: Alexey Rokhin <arokhin@mail.ru>
This commit is contained in:
parent
93d1ce5a55
commit
2d4fc2cd51
1 changed files with 1 additions and 1 deletions
|
|
@ -802,7 +802,7 @@ class Service(object):
|
|||
options['init'] = True
|
||||
|
||||
nano_cpus = None
|
||||
if options.has_key('cpus'):
|
||||
if 'cpus' in options:
|
||||
nano_cpus = int(options.get('cpus') * 1000000000)
|
||||
|
||||
return self.client.create_host_config(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue