Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 4.3.10 #250

Merged
merged 16 commits into from
Feb 23, 2025
Prev Previous commit
Next Next commit
Fix docker desktop resource cache config
Dramelac committed Feb 23, 2025
commit 48bd37bfcdd1fb4c97b76c3e25eb61cec3f4713a
9 changes: 6 additions & 3 deletions exegol/config/EnvInfo.py
Original file line number Diff line number Diff line change
@@ -224,16 +224,19 @@ def getDockerDesktopSettings(cls) -> Dict:
except FileNotFoundError:
logger.warning(f"Docker Desktop configuration file not found: '{file_path}'")
return {}
if cls.__docker_desktop_resource_config is None:
logger.warning(f"Docker Desktop configuration couldn't be loaded from '{file_path}'")
if cls.__docker_desktop_resource_config is None:
logger.warning(f"Docker Desktop configuration couldn't be loaded.'")
else:
return cls.__docker_desktop_resource_config
return {}

@classmethod
def getDockerDesktopResources(cls) -> List[str]:
settings = cls.getDockerDesktopSettings()
# Handle legacy settings key
return settings.get('FilesharingDirectories', settings.get('filesharingDirectories', []))
docker_desktop_resources = settings.get('FilesharingDirectories', settings.get('filesharingDirectories', []))
logger.debug(f"Docker Desktop resources whitelist: {docker_desktop_resources}")
return docker_desktop_resources

@classmethod
def isHostNetworkAvailable(cls) -> bool: