Fix script error in `infer_roles` helper
Merge pull request #1505 from reciprocity/feature/fix-script-error

Fix script error in `infer_roles` helper