Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pei-mysten committed Jul 3, 2024
1 parent 7d96a08 commit 6f393a9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/suiop-cli/src/cli/ci/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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))
Expand Down

0 comments on commit 6f393a9

Please sign in to comment.