mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-22 14:57:56 +01:00
Dump RoleIdentifier the right way around
This commit is contained in:
parent
ce7f678afa
commit
2fe6aa41c1
@ -106,7 +106,7 @@ impl Internal {
|
|||||||
match r {
|
match r {
|
||||||
Ok( (k,v) ) => {
|
Ok( (k,v) ) => {
|
||||||
let role_name_str = unsafe { std::str::from_utf8_unchecked(k) };
|
let role_name_str = unsafe { std::str::from_utf8_unchecked(k) };
|
||||||
let role_id = RoleIdentifier::local_from_str(role_name_str.to_string(), "lmdb".to_string());
|
let role_id = RoleIdentifier::local_from_str("lmdb".to_string(), role_name_str.to_string());
|
||||||
match flexbuffers::from_slice(v) {
|
match flexbuffers::from_slice(v) {
|
||||||
Ok(role) => vec.push((role_id, role)),
|
Ok(role) => vec.push((role_id, role)),
|
||||||
Err(e) => error!(self.log, "Bad format for roleid {}: {}", role_id, e),
|
Err(e) => error!(self.log, "Bad format for roleid {}: {}", role_id, e),
|
||||||
|
Loading…
Reference in New Issue
Block a user