pkg/validate: '%s' -> %q for IP quoting - #2564
Conversation
Save a few characters and get safer quoting if the user gives us a candidate IP address that contains a single quote or some such. The error messages I'm touching in the unit tests are fairly redundant, but I didn't drop their inclusion of the validate.IP error in case we make the error messages more specific later.
36121b0 to
12a4544
Compare
|
Fixed the unit failures with 36121b0e6 -> 12a4544. |
|
@wking: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pierreprinetti, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Save a few characters and get safer quoting if the user gives us a candidate IP address that contains a single quote or some such.