Merge pull request #36734 from YuPengZTE/devPunctuation

Automatic merge from submit-queue

error strings should not end with punctuation

**What this PR does / why we need it**:
Delete the end punctuation of error strings
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
**Release note**:

```release-note
```

Signed-off-by: yupeng <yu.peng36@zte.com.cn>
This commit is contained in:
Kubernetes Submit Queue
2017-02-01 02:55:48 -08:00
committed by GitHub
5 changed files with 10 additions and 10 deletions

View File

@@ -519,13 +519,13 @@ type kops struct {
func NewKops() (*kops, error) {
if *kopsPath == "" {
return nil, fmt.Errorf("--kops must be set to a valid binary path for kops deployment.")
return nil, fmt.Errorf("--kops must be set to a valid binary path for kops deployment")
}
if *kopsCluster == "" {
return nil, fmt.Errorf("--kops-cluster must be set to a valid cluster name for kops deployment.")
return nil, fmt.Errorf("--kops-cluster must be set to a valid cluster name for kops deployment")
}
if *kopsState == "" {
return nil, fmt.Errorf("--kops-state must be set to a valid S3 path for kops deployment.")
return nil, fmt.Errorf("--kops-state must be set to a valid S3 path for kops deployment")
}
sshKey := *kopsSSHKey
if sshKey == "" {