Skip to content

Commit 9cf8e65

Browse files
committed
skip aws configure
1 parent 06450cd commit 9cf8e65

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

opendevin/runtime/client/client.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,22 @@ def _execute_bash(
251251
self, command: str, timeout: int | None, keep_prompt: bool = True
252252
) -> tuple[str, int]:
253253
logger.debug(f'Executing command: {command}')
254+
aws_cmd = 'aws configure'
255+
if command.startswith(aws_cmd):
256+
if command == aws_cmd:
257+
path = Path.home() / '.aws'
258+
if os.path.exists(path):
259+
output, exit_code = '[AWS already configured]', 0
260+
else:
261+
output, exit_code = (
262+
'[Interactive AWS configuration is not supported]',
263+
1,
264+
)
265+
266+
if keep_prompt:
267+
output += '\r\n' + self._get_bash_prompt_and_update_pwd()
268+
return output, exit_code
269+
254270
self.shell.sendline(command)
255271

256272
prompts = [

0 commit comments

Comments
 (0)