File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 66with the terms of the Adobe license agreement accompanying it.
77"""
88
9+ import python_on_whales
910import yaml
1011
1112import docker
1213import docker .errors
1314
15+ from buildrunner .config import BuildRunnerConfig
1416from buildrunner .docker import new_client
1517from buildrunner .errors import BuildRunnerProcessingError
1618from buildrunner .utils import is_dict
@@ -41,7 +43,11 @@ def import_image(self):
4143 """
4244
4345 try :
44- import_return = self .docker_client .import_image (self .src )
46+ import_return = None
47+ if BuildRunnerConfig .get_instance ().run_config .use_legacy_builder :
48+ import_return = self .docker_client .import_image (self .src )
49+ else :
50+ import_return = python_on_whales .docker .import_ (self .src )
4551 except docker .errors .APIError as apie :
4652 raise BuildRunnerProcessingError (
4753 f"Error importing image from archive file { self .src } : { apie } "
You can’t perform that action at this time.
0 commit comments