From 02520e4e8b5f027a5727a10759d15da2b3094c6b Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Sun, 27 Oct 2019 12:19:17 +0800 Subject: [PATCH] fix: host-wire-update param rename --- cmd/climc/shell/hostwires.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/climc/shell/hostwires.go b/cmd/climc/shell/hostwires.go index 827290503e..3edadf2774 100644 --- a/cmd/climc/shell/hostwires.go +++ b/cmd/climc/shell/hostwires.go @@ -71,15 +71,15 @@ func init() { type HostWireUpdateOptions struct { HOST string `help:"ID or Name of Host"` WIRE string `help:"ID or Name of Wire"` - Mac string `help:"Mac address"` + MacAddr string `help:"Mac address"` Interface string `help:"Interface"` Bridge string `help:"Bridge"` IsMaster string `help:"Master interface" choices:"true|false"` } R(&HostWireUpdateOptions{}, "host-wire-update", "Update host wire information", func(s *mcclient.ClientSession, args *HostWireUpdateOptions) error { params := jsonutils.NewDict() - if len(args.Mac) > 0 { - params.Add(jsonutils.NewString(args.Mac), "mac_addr") + if len(args.MacAddr) > 0 { + params.Add(jsonutils.NewString(args.MacAddr), "mac_addr") } if len(args.Interface) > 0 { params.Add(jsonutils.NewString(args.Interface), "interface")