TODO(haosdent): Remove this function after we stop supporting `--roles` flag in master.
| 43 | // TODO(haosdent): Remove this function after we stop supporting `--roles` |
| 44 | // flag in master. |
| 45 | Try<vector<string>> parse(const string& text) |
| 46 | { |
| 47 | vector<string> roles = strings::tokenize(text, ","); |
| 48 | |
| 49 | Option<Error> error = validate(roles); |
| 50 | if (error.isSome()) { |
| 51 | return error.get(); |
| 52 | } else { |
| 53 | return roles; |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | |
| 58 | vector<string> ancestors(const string& role) |
no test coverage detected