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 err information of certutil #2341

Merged
merged 1 commit into from
Nov 19, 2020
Merged

fix err information of certutil #2341

merged 1 commit into from
Nov 19, 2020

Conversation

muxuelan
Copy link
Member

What type of PR is this?
/kind feature

What this PR does / why we need it:
If not add the modify, err equals nil here, and this will affect the generation of certificate.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@kubeedge-bot kubeedge-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 18, 2020
@kubeedge-bot kubeedge-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 18, 2020
Comment on lines 103 to 105
fmt.Println("must specify a CommonName")
err :=errors.New("must specify a CommonName")
return nil, err
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
fmt.Println("must specify a CommonName")
err :=errors.New("must specify a CommonName")
return nil, err
return nil, errors.New("must specify a CommonName")

Copy link
Member

Choose a reason for hiding this comment

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

fmt print can be deleted here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay ,I will ,thanks.

Comment on lines 108 to 110
fmt.Println("must specify at least one ExtKeyUsage")
err :=errors.New("must specify at least one ExtKeyUsage")
return nil, err
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
fmt.Println("must specify at least one ExtKeyUsage")
err :=errors.New("must specify at least one ExtKeyUsage")
return nil, err
return nil, errors.New("must specify at least one ExtKeyUsage")

Copy link
Member

@fisherxu fisherxu left a comment

Choose a reason for hiding this comment

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

Please also squash the commits.

Comment on lines 103 to 105
fmt.Println("must specify a CommonName")
err :=errors.New("must specify a CommonName")
return nil, err
Copy link
Member

Choose a reason for hiding this comment

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

fmt print can be deleted here.

@fisherxu
Copy link
Member

/approve

@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fisherxu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 18, 2020
@kevin-wangzefeng
Copy link
Member

/lgtm

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2020
@kubeedge-bot kubeedge-bot merged commit a46f96f into kubeedge:master Nov 19, 2020
@muxuelan muxuelan deleted the cloudhub branch December 21, 2020 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants