diff --git a/pkg/mcclient/options/servers.go b/pkg/mcclient/options/servers.go index 3ded557f64..a3fc05e391 100644 --- a/pkg/mcclient/options/servers.go +++ b/pkg/mcclient/options/servers.go @@ -210,6 +210,7 @@ type ServerDeployOptions struct { Deploy []string `help:"Specify deploy files in virtual server file system" json:"-"` ResetPassword *bool `help:"Force reset password"` Password string `help:"Default user password"` + AutoStart *bool `help:"Auto start server after deployed"` } func (opts *ServerDeployOptions) Params() (*jsonutils.JSONDict, error) { @@ -252,11 +253,12 @@ type ServerMonitorOptions struct { } type ServerSaveImageOptions struct { - ID string `help:"ID or name of server" json:"-"` - IMAGE string `help:"Image name" json:"name"` - Public *bool `help:"Make the image public available" json:"is_public"` - Format string `help:"image format" choices:"vmdk|qcow2"` - Notes string `help:"Notes about the image"` + ID string `help:"ID or name of server" json:"-"` + IMAGE string `help:"Image name" json:"name"` + Public *bool `help:"Make the image public available" json:"is_public"` + Format string `help:"image format" choices:"vmdk|qcow2"` + Notes string `help:"Notes about the image"` + AutoStart *bool `help:"Auto start server after image saved"` } type ServerRebuildRootOptions struct {