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

Fix panic calling stop before run #28

Merged
merged 1 commit into from
Nov 29, 2017
Merged

Conversation

anfernee
Copy link
Member

No description provided.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 29, 2017
@apelisse apelisse self-requested a review November 29, 2017 05:18
@thockin
Copy link
Member

thockin commented Nov 29, 2017

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 29, 2017
@thockin thockin merged commit 334d78a into kubernetes:master Nov 29, 2017
@@ -133,15 +133,17 @@ func (cmd *cmdWrapper) Output() ([]byte, error) {
// Stop is part of the Cmd interface.
Copy link
Member

Choose a reason for hiding this comment

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

I think that comment should explain what happens if it's called before Run() (and probably more). IOW, We should know what to expect from that function without having to read the code, since godoc shows you the comments without the code.

Copy link
Member

Choose a reason for hiding this comment

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

https://godoc.org/k8s.io/utils/exec#Cmd

Actually, you might want to change the Cmd interface documentation, since this object is hidden/private.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants