Skip to content

Commit a09b3ba

Browse files
authored
Fix exec shell error condition
1 parent e5fe70e commit a09b3ba

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)