mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Fix volume create cli bug
This passes the pointer to the concrete struct instead of a copy Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
ed69f38b44
commit
29ba42bbc4
2 changed files with 4 additions and 4 deletions
|
|
@ -94,14 +94,14 @@ func createVolume(ctype string) *cobra.Command {
|
|||
aciOpts := aci.VolumeCreateOptions{}
|
||||
cmd.Flags().StringVar(&aciOpts.Account, "storage-account", "", "Storage account name")
|
||||
_ = cmd.MarkFlagRequired("storage-account")
|
||||
opts = aciOpts
|
||||
opts = &aciOpts
|
||||
case store.EcsContextType:
|
||||
ecsOpts := ecs.VolumeCreateOptions{}
|
||||
cmd.Flags().StringVar(&ecsOpts.KmsKeyID, "kms-key", "", "ID of the AWS KMS CMK to be used to protect the encrypted file system")
|
||||
cmd.Flags().StringVar(&ecsOpts.PerformanceMode, "performance-mode", "", "performance mode of the file system. (generalPurpose|maxIO)")
|
||||
cmd.Flags().Float64Var(&ecsOpts.ProvisionedThroughputInMibps, "provisioned-throughput", 0, "throughput in MiB/s (1-1024)")
|
||||
cmd.Flags().StringVar(&ecsOpts.ThroughputMode, "throughput-mode", "", "throughput mode (bursting|provisioned)")
|
||||
opts = ecsOpts
|
||||
opts = &ecsOpts
|
||||
}
|
||||
return cmd
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue