Skip to content

Commit

Permalink
from-image: disk_size -> size to match API (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcgoodfellow authored Nov 23, 2023
1 parent f66fddc commit c69ee38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions cli/docs/cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -909,10 +909,6 @@
"long": "description",
"help": "Description of the instance to create"
},
{
"long": "disk-size",
"help": "Boot disk size e.g. 512G. Suffix can be k,m,g,t"
},
{
"long": "hostname",
"help": "Hostname of the instance to create"
Expand All @@ -937,6 +933,10 @@
"long": "project",
"help": "Project for image and instance"
},
{
"long": "size",
"help": "Boot disk size e.g. 512G. Suffix can be k,m,g,t"
},
{
"long": "start",
"help": "Start the instance immediately"
Expand Down
4 changes: 2 additions & 2 deletions cli/src/cmd_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pub struct CmdInstanceFromImage {

/// Boot disk size e.g. 512G. Suffix can be k,m,g,t
#[clap(long)]
disk_size: ByteCount,
size: ByteCount,

/// Start the instance immediately
#[clap(long)]
Expand Down Expand Up @@ -266,7 +266,7 @@ impl RunnableCmd for CmdInstanceFromImage {
name: format!("{}-disk", *self.name)
.parse()
.expect("valid disk name"),
size: self.disk_size.clone(),
size: self.size.clone(),
}])
.external_ips(vec![ExternalIpCreate::Ephemeral { pool_name: None }])
.hostname(self.hostname.clone())
Expand Down

0 comments on commit c69ee38

Please sign in to comment.