mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
refactor: do not add DEBUG env var when it is not set (#6690)
This commit is contained in:
@@ -212,11 +212,9 @@ class RemoteRuntime(ActionExecutionClient):
|
||||
plugins=self.plugins,
|
||||
app_config=self.config,
|
||||
)
|
||||
environment = {
|
||||
'DEBUG': 'true'
|
||||
if self.config.debug or os.environ.get('DEBUG', 'false').lower() == 'true'
|
||||
else '',
|
||||
}
|
||||
environment = {}
|
||||
if self.config.debug or os.environ.get('DEBUG', 'false').lower() == 'true':
|
||||
environment['DEBUG'] = 'true'
|
||||
environment.update(self.config.sandbox.runtime_startup_env_vars)
|
||||
start_request = {
|
||||
'image': self.container_image,
|
||||
|
||||
Reference in New Issue
Block a user