Skip to content

Commit

Permalink
fix typos in codes
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyuan committed Jun 12, 2019
1 parent 2155b60 commit c644aa5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pkg/cli/job/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package job

import (
"fmt"

"github.com/spf13/cobra"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -48,7 +49,7 @@ func DeleteJob() error {
}

if deleteJobFlags.JobName == "" {
err := fmt.Errorf("job name is mandaorty to delete a particular job")
err := fmt.Errorf("job name is mandatory to delete a particular job")
return err
}

Expand Down
3 changes: 2 additions & 1 deletion pkg/cli/job/resume.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package job

import (
"fmt"

"github.com/spf13/cobra"

"volcano.sh/volcano/pkg/apis/batch/v1alpha1"
Expand Down Expand Up @@ -44,7 +45,7 @@ func ResumeJob() error {
return err
}
if resumeJobFlags.JobName == "" {
err := fmt.Errorf("job name is mandaorty to resume a particular job")
err := fmt.Errorf("job name is mandatory to resume a particular job")
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/job/suspend.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func SuspendJob() error {
}

if suspendJobFlags.JobName == "" {
err := fmt.Errorf("job name is mandaorty to suspend a particular job")
err := fmt.Errorf("job name is mandatory to suspend a particular job")
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/job/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func ViewJob() error {
return err
}
if viewJobFlags.JobName == "" {
err := fmt.Errorf("job name (specified by --name or -n) is mandaorty to view a particular job")
err := fmt.Errorf("job name (specified by --name or -n) is mandatory to view a particular job")
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/queue/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func GetQueue() error {
}

if getQueueFlags.Name == "" {
err := fmt.Errorf("name is mandaorty to get the particular queue details")
err := fmt.Errorf("name is mandatory to get the particular queue details")
return err
}

Expand Down

0 comments on commit c644aa5

Please sign in to comment.