fix: prefer witness agent override
This commit is contained in:
@@ -277,6 +277,9 @@ func roleConfigEnvVars(roleConfig *beads.RoleConfig, townRoot, rigName string) m
|
||||
}
|
||||
|
||||
func buildWitnessStartCommand(rigPath, rigName, townRoot, agentOverride string, roleConfig *beads.RoleConfig) (string, error) {
|
||||
if agentOverride != "" {
|
||||
roleConfig = nil
|
||||
}
|
||||
if roleConfig != nil && roleConfig.StartCommand != "" {
|
||||
return beads.ExpandRolePattern(roleConfig.StartCommand, townRoot, rigName, "", "witness"), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user