Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: pouch pull should handle space input as an error #1753

Merged
merged 1 commit into from
Jul 20, 2018

Conversation

xiechengsheng
Copy link
Contributor

Signed-off-by: xiechengsheng XIE1995@whut.edu.cn

Ⅰ. Describe what this PR did

pouch pull should handle space input as an error

Ⅱ. Does this pull request fix one issue?

Fixes #1748

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@pouchrobot pouchrobot added areas/images kind/bug This is bug report for project size/S labels Jul 19, 2018
@oiooj
Copy link
Contributor

oiooj commented Jul 19, 2018

Sorry, I didn't notice that you did it. I will close my PR,could you add a test ?

// defaultTag is latest if there is no tag
defaultTag = "latest"
)

// Parse parses ref into reference.Named.
func Parse(ref string) (Named, error) {
if ok := regRef.MatchString(ref); !ok {
return nil, ErrInvalid
return nil, errors.New("invalid reference: " + ref)
Copy link
Contributor

@oiooj oiooj Jul 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The input from users, so we don't need to do this maybe, and this change also breaks the test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your kindly reminding~

Signed-off-by: xiechengsheng <XIE1995@whut.edu.cn>
@codecov-io
Copy link

codecov-io commented Jul 20, 2018

Codecov Report

Merging #1753 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1753      +/-   ##
==========================================
- Coverage   14.16%   14.16%   -0.01%     
==========================================
  Files         281      281              
  Lines       56797    56799       +2     
==========================================
  Hits         8043     8043              
- Misses      47817    47818       +1     
- Partials      937      938       +1
Impacted Files Coverage Δ
cli/pull.go 0% <0%> (ø) ⬆️
daemon/logger/jsonfile/utils.go 71.54% <0%> (-1.63%) ⬇️
apis/server/utils.go 66.66% <0%> (+4.76%) ⬆️

@fuweid
Copy link
Contributor

fuweid commented Jul 20, 2018

LGTM

@fuweid fuweid merged commit 13667d3 into AliyunContainerService:master Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/images kind/bug This is bug report for project size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] pouch pull can't handle space input
5 participants