Skip to content

Commit

Permalink
Allow user to select threads for image upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Hanson committed Oct 30, 2024
1 parent e3e972b commit e1e77da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/src/cmd_disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ pub struct CmdDiskImport {
/// The version of this image (e.g. 11, focal, a9e77e3a, 2023-04-06T14:23:34Z)
#[clap(long, requires_all = ["snapshot", "image", "image_description", "image_os"])]
image_version: Option<String>,

/// The number of parallel threads to use during upload
#[clap(long, default_value = "8")]
thread_count: usize,
}

#[async_trait]
Expand All @@ -97,7 +101,7 @@ impl crate::AuthenticatedCmd for CmdDiskImport {
.disk_import()
.project(self.project.clone())
.description(self.description.clone())
.upload_thread_ct(8)
.upload_thread_ct(self.thread_count)
.disk(self.disk.clone())
.disk_info(disk_info.clone());

Expand Down

0 comments on commit e1e77da

Please sign in to comment.