Merge pull request 'fix: fix: hire-an-agent formula lookup fails for agents with run- prefix formulas (#213)' (#218) from fix/issue-213 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
commit
dd6937e997
1 changed files with 4 additions and 1 deletions
|
|
@ -2602,9 +2602,12 @@ disinto_hire_an_agent() {
|
|||
esac
|
||||
done
|
||||
|
||||
# Default formula path
|
||||
# Default formula path — try both naming conventions
|
||||
if [ -z "$formula_path" ]; then
|
||||
formula_path="${FACTORY_ROOT}/formulas/${role}.toml"
|
||||
if [ ! -f "$formula_path" ]; then
|
||||
formula_path="${FACTORY_ROOT}/formulas/run-${role}.toml"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Validate formula exists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue