refactor: do not add DEBUG env var when it is not set (#6690)

This commit is contained in:
Xingyao Wang
2025-02-11 17:30:40 -05:00
committed by GitHub
parent 425ccc9b1f
commit a371562d94

View File

@@ -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,