Skip to content

Commit da5cb0f

Browse files
authored
Merge pull request #95 from KaminariOS/patch-4
Fix exec shell error condition
2 parents e5fe70e + a09b3ba commit da5cb0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aiopslab/service/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def docker_exec(container_name: str, command: str, timeout=30):
112112
timeout=timeout
113113
)
114114

115-
if out.stderr or out.returncode != 0:
115+
if out.returncode != 0:
116116
error_message = out.stderr.decode("utf-8")
117117
return f"[ERROR] Docker command execution failed: {error_message}"
118118
else:

0 commit comments

Comments
 (0)