mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-09 07:54:28 +08:00
Automatic merge from release/2.7.0 -> release/2.8.0
* commit '22e227989e03f6b1122644c10cb51829232593f0': openstackcli:修复参数缺失bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user