Explorar o código

Fix cpu option checking.

Signed-off-by: Alexey Rokhin <[email protected]>
Alexey Rokhin %!s(int64=8) %!d(string=hai) anos
pai
achega
faaca661ac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(