Browse Source

Fix cpu option checking.

Signed-off-by: Alexey Rokhin <[email protected]>
Alexey Rokhin 8 years ago
parent
commit
faaca661ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compose/service.py

+ 1 - 1
compose/service.py

@@ -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(