Skip to content

Commit

Permalink
Remove unnecessary debugging outputs. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Nov 27, 2020
1 parent 44f65ed commit 4f32e81
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,12 @@ func init() {
clusterMachineSSHCmd.MarkFlagRequired("machineid")
clusterMachineSSHCmd.RegisterFlagCompletionFunc("machineid", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
// FIXME howto implement flag based completion for a already given clusterid
fmt.Printf("args:%v\n", args)
return clusterMachineListCompletion("123")
})
clusterMachineConsoleCmd.Flags().String("machineid", "", "machine to connect to.")
clusterMachineConsoleCmd.MarkFlagRequired("machineid")
clusterMachineConsoleCmd.RegisterFlagCompletionFunc("machineid", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
// FIXME howto implement flag based completion for a already given clusterid
fmt.Printf("args:%v\n", args)
return clusterMachineListCompletion("123")
})
clusterMachineCmd.AddCommand(clusterMachineListCmd)
Expand Down Expand Up @@ -1087,7 +1085,6 @@ func clusterID(verb string, args []string) (string, error) {
func makeEgressRules(egressFlagValue []string) []*models.V1EgressRule {
m := map[string]models.V1EgressRule{}
for _, e := range egressFlagValue {
fmt.Println(e)
parts := strings.Split(e, ":")
if len(parts) != 2 {
log.Fatalf("egress config needs format <network>:<ip> but got %q", e)
Expand Down

0 comments on commit 4f32e81

Please # to comment.