fix: fix native scripts access to reserved variables

This commit is contained in:
Ruben Fiszel
2024-08-06 16:15:09 +02:00
parent 1e7de238cf
commit 7886f8f471
+3 -4
View File
@@ -967,11 +967,10 @@ try {{
};
let reserved_variables_args_out_f = async {
if annotation.native_mode {
return Ok(HashMap::new()) as error::Result<HashMap<String, String>>;
}
let args_and_out_f = async {
create_args_and_out_file(&client, job, job_dir, db).await?;
if !annotation.native_mode {
create_args_and_out_file(&client, job, job_dir, db).await?;
}
Ok(()) as Result<()>
};
let reserved_variables_f = async {