Skip to content

Commit aad1992

Browse files
author
pintaoz
committed
Fix hyperpod exec command failure
1 parent c886e01 commit aad1992

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/hyperpod_cli/service/exec_command.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,7 @@ def exec_command(
3434
all_pods: Optional[bool],
3535
bash_command: tuple,
3636
):
37-
before_seperator = bash_command[: bash_command.index("-")]
38-
39-
if before_seperator:
40-
raise RuntimeError(
41-
f"please provide bash command after -, unexpected char found {before_seperator}"
42-
)
43-
44-
after_seperator = bash_command[bash_command.index("-") + 1 :]
45-
bash_command_str: str = " ".join(after_seperator)
37+
bash_command_str: str = " ".join(bash_command)
4638

4739
k8s_client = KubernetesClient()
4840
list_pods_service = ListPods()

0 commit comments

Comments
 (0)