mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-06-11 19:03:21 +02:00
--print-default adjustments
This commit is contained in:
@ -258,12 +258,16 @@ pub fn load(
|
||||
.compat(),
|
||||
);
|
||||
|
||||
let mut actor_map: HashMap<String, _> = config
|
||||
.actor_connections
|
||||
let mut actor_connections_data_vec: Vec<(String, String)> = vec![];
|
||||
for actor_connection in config.actor_connections.clone().into_iter() {
|
||||
actor_connections_data_vec.push((actor_connection.machine, actor_connection.actor));
|
||||
}
|
||||
|
||||
let mut actor_map: HashMap<String, _> = actor_connections_data_vec
|
||||
.iter()
|
||||
.filter_map(|(k, v)| {
|
||||
if let Some(resource) = resources.get_by_id(v) {
|
||||
Some((k.clone(), resource.get_signal()))
|
||||
if let Some(resource) = resources.get_by_id(k) {
|
||||
Some((v.clone(), resource.get_signal()))
|
||||
} else {
|
||||
tracing::error!(actor=%k, machine=%v, "Machine configured for actor not found!");
|
||||
None
|
||||
|
Reference in New Issue
Block a user