chore: fix paths
This commit is contained in:
parent
75419a490f
commit
f0e1d3ce6b
@ -426,7 +426,7 @@ pub async fn create_cloud_config(reqname: &str,req_tsksrvcs: &str,reqenv: &ReqEn
|
||||
eprintln!("Error {} monitor_info {} -> {}",&entry,&cloud.env.monitor_run,e);
|
||||
String::from("")
|
||||
}));
|
||||
} else {
|
||||
} else if check_entries.len() > 0 && check_entries.len() < idx {
|
||||
cfg.monitor_info = check_entries[idx].monitor_info.to_owned();
|
||||
}
|
||||
}
|
||||
@ -442,8 +442,10 @@ pub async fn create_cloud_config(reqname: &str,req_tsksrvcs: &str,reqenv: &ReqEn
|
||||
if req_tsksrvcs.contains("liveness") {
|
||||
if no_check_entries {
|
||||
liveness = Some(on_cloud_name_req("liveness",&cloud,&reqenv,"","",&itm.path).await);
|
||||
} else {
|
||||
} else if check_entries.len() > 0 && check_entries.len() < idx {
|
||||
liveness = check_entries[idx].groups[grp_idx].items[itm_idx].liveness.to_owned();
|
||||
} else {
|
||||
liveness = Some(String::from(""));
|
||||
}
|
||||
} else {
|
||||
liveness = itm.liveness.to_owned();
|
||||
|
@ -184,7 +184,6 @@ pub fn run_on_selector(rule: &MonitorRule) -> Result<String> {
|
||||
}
|
||||
}
|
||||
pub async fn run_monitor(monitor_rules: MonitorRules, _cloud: Cloud, _app_env: AppEnv) -> Result<()> {
|
||||
// dbg!(&monitor_rules);
|
||||
println!("Run {}: {}",&monitor_rules.name,&monitor_rules.description);
|
||||
for (idx,rule) in monitor_rules.rules.iter().enumerate() {
|
||||
match rule.schedule.as_str() {
|
||||
|
Loading…
Reference in New Issue
Block a user