Skip to content

Commit

Permalink
20GBのISOイメージ作成機能 (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamamoto-febc authored Jun 19, 2024
1 parent 3c0f229 commit 7d0d007
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/commands/iaas/cdrom/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type createParameter struct {
cflag.DescParameter `cli:",squash" mapconv:",squash"`
cflag.TagsParameter `cli:",squash" mapconv:",squash"`
cflag.IconIDParameter `cli:",squash" mapconv:",squash"`
SizeGB int `cli:"size,desc=(*required when --source-file is specified)" validate:"required_with=SourceFile,cdrom_sizes"`
SizeGB int `cli:"size,desc=(*required when --source-file is specified),options=cdrom_sizes" validate:"required_with=SourceFile,cdrom_sizes"`

SourceFile string `mapconv:"SourceReader,filters=path_to_reader" validate:"required,file"`
}
Expand Down
4 changes: 3 additions & 1 deletion pkg/commands/iaas/cdrom/zz_create_gen.go

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

1 change: 1 addition & 0 deletions pkg/vdef/definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var definitions = map[string][]*definition{
"cdrom_sizes": {
{key: 5, value: 5},
{key: 10, value: 10},
{key: 20, value: 20},
},
"certificate_authority_issuance_method": {
{key: types.CertificateAuthorityIssuanceMethods.URL.String(), value: types.CertificateAuthorityIssuanceMethods.URL},
Expand Down

0 comments on commit 7d0d007

Please sign in to comment.