Skip to content

Commit ccb8015

Browse files
committed
add config-id default flag to cloud server resize too
1 parent 86e45a7 commit ccb8015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/cloudServerResize.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package cmd
1818
import (
1919
"fmt"
2020

21+
"github.com/spf13/cast"
2122
"github.com/spf13/cobra"
2223

2324
"github.com/liquidweb/liquidweb-cli/instance"
@@ -104,7 +105,7 @@ func init() {
104105
cloudServerResizeCmd.Flags().Int64("memory", -1, "desired memory (when private-parent)")
105106
cloudServerResizeCmd.Flags().Bool("skip-fs-resize", false, "whether or not to skip the fs resize")
106107
cloudServerResizeCmd.Flags().Int64("vcpu", -1, "desired vcpu count (when private-parent)")
107-
cloudServerResizeCmd.Flags().Int64("config-id", -1,
108+
cloudServerResizeCmd.Flags().Int64("config-id", cast.ToInt64(defaultFlag("config-id", -1)),
108109
"config-id of your desired config (when !private-parent) (see 'cloud server options --configs')")
109110

110111
if err := cloudServerResizeCmd.MarkFlagRequired("uniq-id"); err != nil {

0 commit comments

Comments
 (0)