Skip to content

Commit

Permalink
Merge pull request #445 from justinsb/postitional_arguments_upgrade_c…
Browse files Browse the repository at this point in the history
…luster

Support positional args in upgrade cluster
  • Loading branch information
justinsb authored Sep 17, 2016
2 parents 3707668 + cff1eff commit 269662e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/kops/upgrade_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func init() {
Short: "Upgrade cluster",
Long: `Upgrades a k8s cluster.`,
Run: func(cmd *cobra.Command, args []string) {
err := upgradeCluster.Run()
err := upgradeCluster.Run(args)
if err != nil {
exitWithError(err)
}
Expand All @@ -42,7 +42,12 @@ type upgradeAction struct {
apply func()
}

func (c *UpgradeClusterCmd) Run() error {
func (c *UpgradeClusterCmd) Run(args []string) error {
err := rootCommand.ProcessArgs(args)
if err != nil {
return err
}

clusterRegistry, cluster, err := rootCommand.Cluster()
if err != nil {
return err
Expand Down

0 comments on commit 269662e

Please sign in to comment.