Skip to content

Commit dac5d6d

Browse files
fix: use system PATH for Docker binary instead of hardcoded path
1 parent f0f94f2 commit dac5d6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/crewai/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class Agent(BaseAgent):
174174
)
175175

176176
@model_validator(mode="before")
177-
def validate_from_repository(cls, v): # noqa: N805
177+
def validate_from_repository(cls, v): # noqa: N805
178178
if v is not None and (from_repository := v.get("from_repository")):
179179
return load_agent_from_repository(from_repository) | v
180180
return v
@@ -702,7 +702,7 @@ def _validate_docker_installation(self) -> None:
702702

703703
try:
704704
subprocess.run(
705-
["/usr/bin/docker", "info"],
705+
["docker", "info"], # noqa: S607
706706
check=True,
707707
stdout=subprocess.PIPE,
708708
stderr=subprocess.PIPE,

0 commit comments

Comments
 (0)