Skip to content

Commit

Permalink
fix json value of image
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKaul committed Apr 26, 2024
1 parent f01cb19 commit 8599b64
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dashtool/src/workflow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ pub fn workflow(plugin: Arc<dyn Plugin>) -> Result<(), Error> {
let task = match node {
Node::Singer(node) => {
templates
.entry(serde_json::from_value::<String>(
node.target["image"].clone(),
)?)
.entry(node.image.clone())
.or_insert_with(|| singer_template(&node, &*plugin).unwrap());

let mut config_map = ConfigMap::default();
Expand Down Expand Up @@ -80,10 +78,7 @@ pub fn workflow(plugin: Arc<dyn Plugin>) -> Result<(), Error> {
.replace(['/', ':', '_', '.'], "-")
.to_lowercase(),
)
.template(Some(
serde_json::from_value::<String>(node.target["image"].clone())?
.replace(['/', ':', '_', '.'], "-"),
))
.template(Some(node.image.clone().replace(['/', ':', '_', '.'], "-")))
.arguments(Some(
ArgumentsBuilder::default()
.parameters(vec![{
Expand Down

0 comments on commit 8599b64

Please sign in to comment.