Display empty string instead of <nil> when IP opt is nil.#13879
Conversation
|
this is weird and seems a regression cause I'm not experiencing the problem on 1.7.0-rc2 but only on latest master :/ ok found 5fa6014 :) |
|
It is indeed a regression from 1.7.0-rc2, and comes from #13757, for which I am guilty :) The flag type was changed from It is not a regression in Should I try to add an integration test, or a unit test in |
|
@eolamey unit test make sense thanks |
Fixes #13878. Signed-off-by: Eric-Olivier Lamey <eo@lamey.me>
|
@runcom, does this look ok to you? |
|
Yep, assuming janky is happy this LGTM |
There was a problem hiding this comment.
Should we add a non-empty case too?
There was a problem hiding this comment.
I'm not sure I understand your comment, there's both "" and "0.0.0.0" (surely non valid, but yet non-empty).
There was a problem hiding this comment.
doi - sorry, I misread the test. For some reason I thought that was just one test where 0.0.0.0 ended up mapping to "".
One day I'll learn to read :-)
|
LGTM! Thanks :-) |
|
LGTM |
Display empty string instead of <nil> when IP opt is nil.
|
cherry-picked |
Fixes #13878.