mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
fix: fix args interpolation for tag and concurrency key for non string values
This commit is contained in:
@@ -2046,9 +2046,10 @@ fn interpolate_args<T: Serialize>(
|
||||
let arg_name = cap.get(1).unwrap().as_str();
|
||||
let arg_value = value
|
||||
.get(arg_name)
|
||||
.and_then(|x| x.as_str())
|
||||
.map(|x| serde_json::to_string(x).unwrap_or_default())
|
||||
.unwrap_or_default();
|
||||
interpolated = interpolated.replace(format!("$args[{}]", arg_name).as_str(), arg_value);
|
||||
interpolated =
|
||||
interpolated.replace(format!("$args[{}]", arg_name).as_str(), &arg_value);
|
||||
}
|
||||
interpolated
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user