Skip to content

Commit

Permalink
fix docstring, appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nicmorales9 committed Feb 7, 2024
1 parent d7b2ea1 commit dcd6344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kubectl-fdb/cmd/k8s_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func getProcessGroupIDsFromPodName(cluster *fdbv1beta2.FoundationDBCluster, podN

// getProcessGroupIdsWithClass returns a list of ProcessGroupIDs in the given cluster which are of the given processClass
func getProcessGroupIdsWithClass(cluster *fdbv1beta2.FoundationDBCluster, processClass string) []fdbv1beta2.ProcessGroupID {
var matchingProcessGroupIDs []fdbv1beta2.ProcessGroupID
matchingProcessGroupIDs := []fdbv1beta2.ProcessGroupID{}
for _, processGroup := range cluster.Status.ProcessGroups {
if processGroup.ProcessClass != fdbv1beta2.ProcessClass(processClass) {
continue
Expand Down
4 changes: 2 additions & 2 deletions kubectl-fdb/cmd/remove_process_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func newRemoveProcessGroupCmd(streams genericclioptions.IOStreams) *cobra.Comman

cmd := &cobra.Command{
Use: "process-groups",
Short: "Adds a process group (or multiple) to the remove list of the given cluster",
Long: "Adds a process group (or multiple) to the remove list field of the given cluster",
Short: "Adds a process group (or multiple) to the remove list of the given cluster, or matching given pod names",
Long: "Adds a process group (or multiple) to the remove list field of the given cluster, or matching given pod names",
RunE: func(cmd *cobra.Command, args []string) error {
wait, err := cmd.Root().Flags().GetBool("wait")
if err != nil {
Expand Down

0 comments on commit dcd6344

Please sign in to comment.