소스 검색

Fix cpu option checking.

Signed-off-by: Alexey Rokhin <[email protected]>
Alexey Rokhin 8 년 전
부모
커밋
faaca661ac
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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(