-
Notifications
You must be signed in to change notification settings - Fork 948
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
enhance: display disconnect result for pouch network disconnect #1590
enhance: display disconnect result for pouch network disconnect #1590
Conversation
0bc1260
to
6695f39
Compare
Codecov Report
@@ Coverage Diff @@
## master #1590 +/- ##
==========================================
- Coverage 41.84% 38.33% -3.52%
==========================================
Files 272 272
Lines 17681 19291 +1610
==========================================
- Hits 7399 7395 -4
- Misses 9370 10985 +1615
+ Partials 912 911 -1
|
} | ||
fmt.Printf("container %s is disconnected from network %s\n", container, network) | ||
|
||
return nil | ||
} | ||
|
||
// networkDisconnectExample shows examples in 'disconnect' command, and is used in auto-generated cli docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need change the example command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine. I have updated it. PTAL, thanks
Can you add more information about this pr? Such as change format from "A" to "B"... |
6695f39
to
f03b0d3
Compare
cli/network.go
Outdated
if err != nil { | ||
return err | ||
} | ||
fmt.Printf("container %s is disconnected from network %s\n", container, network) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about successfully disconnected
? :)
Signed-off-by: Eric Li <lcy041536@gmail.com>
f03b0d3
to
ea1afb4
Compare
lgtm |
Signed-off-by: Eric Li lcy041536@gmail.com
Ⅰ. Describe what this PR did
enhance: display disconnect result for pouch network disconnect
Now If we disconnect a container from a network, it will display nothing. This PR will print the success message like
Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. Describe how you did it
NONE
Ⅳ. Describe how to verify it
if pouch network disconnect successfully, it will print success
Ⅴ. Special notes for reviews