mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 00:04:10 +00:00
fix: fix native scripts access to reserved variables
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user