From 6f393a9bf78fe04e1343051cc91431caa4fd9961 Mon Sep 17 00:00:00 2001 From: Pei Deng Date: Wed, 3 Jul 2024 14:59:40 -0700 Subject: [PATCH] fix --- crates/suiop-cli/src/cli/ci/image.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/suiop-cli/src/cli/ci/image.rs b/crates/suiop-cli/src/cli/ci/image.rs index 01ecbc4b2113e..52539a5cbc807 100644 --- a/crates/suiop-cli/src/cli/ci/image.rs +++ b/crates/suiop-cli/src/cli/ci/image.rs @@ -488,14 +488,6 @@ fn generate_image_request(token: &str, action: &ImageAction) -> reqwest::Request RepoRegion::UsEast1 => region = "us-east1".to_string(), } } - let mut args = vec![]; - for arg in build_args.clone().iter_mut() { - let needle = "--"; - if !arg.starts_with(needle) { - arg.insert_str(0, needle); - } - args.push(arg.to_string()) - } let body = RequestBuildRequest { repo_name: repo_name.clone(), dockerfile: dockerfile.clone(), @@ -507,7 +499,7 @@ fn generate_image_request(token: &str, action: &ImageAction) -> reqwest::Request cpu, memory, disk, - build_args: args, + build_args: build_args.clone(), }; debug!("req body: {:?}", body); req.json(&body).headers(generate_headers_with_auth(token))