From f90c7dce3f56c2298bacd9a904924d11b4425547 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Wed, 12 Sep 2018 13:46:17 +0800 Subject: [PATCH] climc: server deploy and save-image auto_start --- pkg/mcclient/options/servers.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkg/mcclient/options/servers.go b/pkg/mcclient/options/servers.go index 9018347ab8..bcf5394997 100644 --- a/pkg/mcclient/options/servers.go +++ b/pkg/mcclient/options/servers.go @@ -208,6 +208,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) { @@ -250,11 +251,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 {