From daa0f66f0eb55b081514e40cd4b768e930e10a90 Mon Sep 17 00:00:00 2001 From: TangBin Date: Thu, 30 Aug 2018 12:14:16 +0800 Subject: [PATCH] notices climc fix --- cmd/climc/shell/notices.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/climc/shell/notices.go b/cmd/climc/shell/notices.go index 697316fb62..ab7f4423fe 100644 --- a/cmd/climc/shell/notices.go +++ b/cmd/climc/shell/notices.go @@ -4,15 +4,19 @@ import ( "yunion.io/x/jsonutils" "yunion.io/x/onecloud/pkg/mcclient" "yunion.io/x/onecloud/pkg/mcclient/modules" + "yunion.io/x/onecloud/pkg/mcclient/options" ) func init() { type NoticesListOptions struct { - BaseListOptions + options.BaseListOptions } R(&NoticesListOptions{}, "notice-list", "list notices", func(s *mcclient.ClientSession, args *NoticesListOptions) error { - params := FetchPagingParams(args.BaseListOptions) + params, err := options.ListStructToParams(args) + if err != nil { + return err + } result, err := modules.Notice.List(s, params) if err != nil {