Skip to content

Commit

Permalink
Merge pull request #420 from k82cn/fix_err_msg
Browse files Browse the repository at this point in the history
Fixed typo in error message.
  • Loading branch information
volcano-sh-bot authored Aug 19, 2019
2 parents 7ba297f + a40adb2 commit 7d5295d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/scheduler/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ func (su *defaultStatusUpdater) UpdatePodGroup(pg *api.PodGroup) (*api.PodGroup,
}
updated, err := su.kbclient.SchedulingV1alpha1().PodGroups(podGroup.Namespace).Update(podGroup)
if err != nil {
glog.Errorf("Error while updating podgroup with error: %v", err)
glog.Errorf("Error while updating PodGroup with error: %v", err)
}
podGroupInfo, err := api.ConvertV1alpha1ToPodGroupInfo(updated)
if err != nil {
glog.Errorf("Error While converting v1alpha.Podgroup to api.PodGroup with error: %v", err)
glog.Errorf("Error while converting v1alpha.PodGroup to api.PodGroup with error: %v", err)
return nil, err
}
return podGroupInfo, nil
Expand All @@ -211,16 +211,17 @@ func (su *defaultStatusUpdater) UpdatePodGroup(pg *api.PodGroup) (*api.PodGroup,
}
updated, err := su.kbclient.SchedulingV1alpha2().PodGroups(podGroup.Namespace).Update(podGroup)
if err != nil {
glog.Errorf("Error while updating podgroup with error: %v", err)
glog.Errorf("Error while updating PodGroup with error: %v", err)
}
podGroupInfo, err := api.ConvertV1alpha2ToPodGroupInfo(updated)
if err != nil {
glog.Errorf("Error While converting v2alpha.Podgroup to api.PodGroup with error: %v", err)
glog.Errorf("Error While converting v2alpha.PodGroup to api.PodGroup with error: %v", err)
return nil, err
}
return podGroupInfo, nil
}
return nil, fmt.Errorf("Provide Proper version of PodGroup, Invalid PodGroup version: %s", pg.Version)

return nil, fmt.Errorf("invalid PodGroup version: %s", pg.Version)
}

type defaultVolumeBinder struct {
Expand Down

0 comments on commit 7d5295d

Please sign in to comment.