mirror of https://github.com/kubernetes/kops.git
Fix cluster list action
Restoring the behaviour of `kops get cluster`, where it lists clusters even if one is configured in kubeconfig.
This commit is contained in:
parent
8d0b2d3773
commit
0b38591e11
|
@ -100,8 +100,8 @@ func NewCmdGetCluster(f *util.Factory, out io.Writer, getOptions *GetOptions) *c
|
||||||
return fmt.Errorf("cannot mix --name for cluster with positional arguments")
|
return fmt.Errorf("cannot mix --name for cluster with positional arguments")
|
||||||
}
|
}
|
||||||
options.ClusterNames = append(options.ClusterNames, args...)
|
options.ClusterNames = append(options.ClusterNames, args...)
|
||||||
} else {
|
} else if rootCommand.clusterName != "" {
|
||||||
options.ClusterNames = append(options.ClusterNames, rootCommand.ClusterName(true))
|
options.ClusterNames = append(options.ClusterNames, rootCommand.clusterName)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue