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

Catching exception when interface missing for Desktop beta feature #184

Merged
merged 6 commits into from
Sep 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing automatic port definition statement structure
  • Loading branch information
ShutdownRepo committed Sep 27, 2023
commit 20df3f60455abb58b72bbacd49c5fff6a22be26d
8 changes: 5 additions & 3 deletions exegol/model/ContainerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,11 @@ def configureDesktop(self, desktop_config: str):
logger.critical(f"Your configuration is invalid, please use the following format:[green]mode:host:port[/green]")

if self.__desktop_port is None:
_desktop_host = self.__desktop_host if _host_set_by_user else None
logger.debug(f"Desktop port automatically set for host {_desktop_host}")
self.__desktop_port = self.__findAvailableRandomPort(_desktop_host)
logger.debug(f"Desktop port will be set automatically")
if _host_set_by_user:
self.__desktop_port = self.__findAvailableRandomPort(self.__desktop_host)
else:
self.__desktop_port = self.__findAvailableRandomPort()

def __disableDesktop(self):
"""Procedure to disable exegol desktop feature"""
Expand Down