mirror of https://github.com/kubernetes/kops.git
Fix typo in CreateInstanceGroupCmd
This commit is contained in:
parent
0d12cd02c7
commit
ed734bb354
|
@ -13,10 +13,10 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateInstanceanceGroupCmd struct {
|
type CreateInstanceGroupCmd struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var createInstanceanceGroupCmd CreateInstanceanceGroupCmd
|
var createInstanceGroupCmd CreateInstanceGroupCmd
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
|
@ -31,7 +31,7 @@ func init() {
|
||||||
if len(args) != 1 {
|
if len(args) != 1 {
|
||||||
glog.Exitf("Can only create one instance group at a time!")
|
glog.Exitf("Can only create one instance group at a time!")
|
||||||
}
|
}
|
||||||
err := createInstanceanceGroupCmd.Run(args[0])
|
err := createInstanceGroupCmd.Run(args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Exitf("%v", err)
|
glog.Exitf("%v", err)
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ func init() {
|
||||||
createCmd.AddCommand(cmd)
|
createCmd.AddCommand(cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *CreateInstanceanceGroupCmd) Run(groupName string) error {
|
func (c *CreateInstanceGroupCmd) Run(groupName string) error {
|
||||||
_, cluster, err := rootCommand.Cluster()
|
_, cluster, err := rootCommand.Cluster()
|
||||||
|
|
||||||
instanceGroupStore, err := rootCommand.InstanceGroupRegistry()
|
instanceGroupStore, err := rootCommand.InstanceGroupRegistry()
|
||||||
|
|
Loading…
Reference in New Issue