rename: role badge stays 'manager'; unify harness unit name to hive-ag3nt
This commit is contained in:
parent
77622c0585
commit
e7e0675d22
6 changed files with 15 additions and 18 deletions
|
|
@ -1157,9 +1157,8 @@ async fn get_journal(
|
|||
])
|
||||
.arg(lines.to_string());
|
||||
if let Some(u) = q.unit.as_deref().filter(|s| !s.is_empty()) {
|
||||
// accept hive-ag3nt[.service] / hive-m1nd[.service] — anything
|
||||
// else we refuse, again to keep the shell-out tight.
|
||||
let allowed = ["hive-ag3nt.service", "hive-m1nd.service"];
|
||||
// accept hive-ag3nt[.service] — anything else refused.
|
||||
let allowed = ["hive-ag3nt.service"];
|
||||
let unit = if u.ends_with(".service") {
|
||||
u.to_owned()
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue