fix: fix: hire-an-agent formula lookup fails for agents with run- prefix formulas (#213)
This commit is contained in:
parent
55e4132560
commit
d06cd47838
1 changed files with 4 additions and 1 deletions
|
|
@ -2602,9 +2602,12 @@ disinto_hire_an_agent() {
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# Default formula path
|
# Default formula path — try both naming conventions
|
||||||
if [ -z "$formula_path" ]; then
|
if [ -z "$formula_path" ]; then
|
||||||
formula_path="${FACTORY_ROOT}/formulas/${role}.toml"
|
formula_path="${FACTORY_ROOT}/formulas/${role}.toml"
|
||||||
|
if [ ! -f "$formula_path" ]; then
|
||||||
|
formula_path="${FACTORY_ROOT}/formulas/run-${role}.toml"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Validate formula exists
|
# Validate formula exists
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue