소스 검색

Fix same file 'extends' optimization

Signed-off-by: Aleksandr Mezin <[email protected]>
Aleksandr Mezin 6 년 전
부모
커밋
c24b7b6464
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compose/config/config.py

+ 1 - 1
compose/config/config.py

@@ -615,7 +615,7 @@ class ServiceExtendsResolver(object):
         config_path = self.get_extended_config_path(extends)
         service_name = extends['service']
 
-        if config_path == self.config_file.filename:
+        if config_path == os.path.abspath(self.config_file.filename):
             try:
                 service_config = self.config_file.get_service(service_name)
             except KeyError: