Skip to content

Conversation

@fuweid
Copy link
Contributor

@fuweid fuweid commented Apr 27, 2018

Signed-off-by: Wei Fu [email protected]

Ⅰ. Describe what this PR did

add newline for id when create container

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. Describe how you did it

use fmt.Println

Ⅳ. Describe how to verify it

➜  /tmp pouch create busybox:latest top && echo test
26593eb31c06dd05926ea91c6b2241ba82b44ae7e9214bcea5bafcd43e90006c
test

Ⅴ. Special notes for reviews

NONE

@fuweid fuweid requested review from HusterWan and ZouRui89 April 27, 2018 05:21
@pouchrobot pouchrobot added kind/bug This is bug report for project size/XS labels Apr 27, 2018
if len(result.Warnings) != 0 {
fmt.Printf("WARNING: %s \n", strings.Join(result.Warnings, "\n"))
}
fmt.Printf(result.ID)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add test case to lock this ? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ZouRui89
Copy link
Contributor

ZouRui89 commented Apr 27, 2018

CI failed because there exists length check of container ID. If it is necessary to change the way of print, change the corresponding test case.

@pouchrobot pouchrobot added size/S and removed size/XS labels Apr 27, 2018
@fuweid
Copy link
Contributor Author

fuweid commented Apr 27, 2018

@ZouRui89 I have updated the case. Please help me to review. Thanks!

FYI @HusterWan

@HusterWan
Copy link
Contributor

LGTM

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Apr 27, 2018
@codecov-io
Copy link

Codecov Report

Merging #1237 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1237   +/-   ##
=======================================
  Coverage   15.36%   15.36%           
=======================================
  Files         172      172           
  Lines       10630    10630           
=======================================
  Hits         1633     1633           
  Misses       8877     8877           
  Partials      120      120
Impacted Files Coverage Δ
cli/create.go 0% <0%> (ø) ⬆️

@HusterWan HusterWan merged commit 7bef230 into AliyunContainerService:master Apr 27, 2018
@fuweid fuweid deleted the bugfix_add_return_when_show_id_after_create branch April 27, 2018 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug This is bug report for project LGTM one maintainer or community participant agrees to merge the pull reuqest. size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants