MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / _aws_error_code

Function _aws_error_code

ci/torch_latest.py:892–894  ·  view source on GitHub ↗
(result: Any)

Source from the content-addressed store, hash-verified

890
891
892def _aws_error_code(result: Any) -> str:
893 match = _AWS_ERROR_RE.search(result.stderr or "")
894 return match.group(1) if match and _AWS_ERROR_CODE_RE.fullmatch(match.group(1)) else ""
895
896
897def _aws_text(run_command: Any, args: Sequence[str], *, timeout: float | None = None) -> str:

Callers 4

_aws_textFunction · 0.85
acquire_aws_instanceFunction · 0.85
wait_for_ssm_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected