diff --git a/pkg/util/openstack/shell/disk.go b/pkg/util/openstack/shell/disk.go index e1ab96821f..76f9ecc130 100644 --- a/pkg/util/openstack/shell/disk.go +++ b/pkg/util/openstack/shell/disk.go @@ -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 }