Skip to content

Commit

Permalink
skip aws configure
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Aug 14, 2024
1 parent 06450cd commit 9cf8e65
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions opendevin/runtime/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,22 @@ def _execute_bash(
self, command: str, timeout: int | None, keep_prompt: bool = True
) -> tuple[str, int]:
logger.debug(f'Executing command: {command}')
aws_cmd = 'aws configure'
if command.startswith(aws_cmd):
if command == aws_cmd:
path = Path.home() / '.aws'
if os.path.exists(path):
output, exit_code = '[AWS already configured]', 0
else:
output, exit_code = (
'[Interactive AWS configuration is not supported]',
1,
)

if keep_prompt:
output += '\r\n' + self._get_bash_prompt_and_update_pwd()
return output, exit_code

self.shell.sendline(command)

prompts = [
Expand Down

0 comments on commit 9cf8e65

Please sign in to comment.