Automatic merge from release/2.7.0 -> release/2.8.0

* commit '22e227989e03f6b1122644c10cb51829232593f0':
  openstackcli:修复参数缺失bug
This commit is contained in:
邱剑
2019-03-25 19:40:27 +08:00

View File

@@ -7,10 +7,11 @@ import (
func init() {
type DiskListOptions struct {
Category string `help:"Storage type for disk"`
Category string `help:"Storage type for disk"`
BackendName string `help:"Storage backend eg:lvm, rbd"`
}
shellutils.R(&DiskListOptions{}, "disk-list", "List disks", func(cli *openstack.SRegion, args *DiskListOptions) error {
disks, err := cli.GetDisks(args.Category)
disks, err := cli.GetDisks(args.Category, args.BackendName)
if err != nil {
return err
}