From d1ecca0361bbcc778e02e71ea81084e39a7e92ef Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Mon, 29 Nov 2021 23:55:45 +0800 Subject: [PATCH] fix: make test for a moving server options (#12772) Co-authored-by: Qiu Jian --- pkg/mcclient/example/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/mcclient/example/server.go b/pkg/mcclient/example/server.go index 5224b3ba8e..9069d57bf7 100644 --- a/pkg/mcclient/example/server.go +++ b/pkg/mcclient/example/server.go @@ -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)