mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix: make test for a moving server options (#12772)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"yunion.io/x/onecloud/pkg/mcclient"
|
||||
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
|
||||
"yunion.io/x/onecloud/pkg/mcclient/options"
|
||||
compute_options "yunion.io/x/onecloud/pkg/mcclient/options/compute"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -88,7 +89,7 @@ func GetServerExample() error {
|
||||
}
|
||||
|
||||
pendingDelete := true //回收站实例
|
||||
opts := options.ServerListOptions{}
|
||||
opts := compute_options.ServerListOptions{}
|
||||
opts.PendingDelete = &pendingDelete
|
||||
|
||||
params, err := options.StructToParams(opts)
|
||||
|
||||
Reference in New Issue
Block a user