-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fqdn: Fix Restore Check Logic #31784
fqdn: Fix Restore Check Logic #31784
Conversation
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.
Just out of curiosity, what's the path that leads to an empty map instead of a nil one?
Sometimes restored IPRules do not have the default "nil" populating their IP maps, but instead have an empty map structure. We need to check for this restore possibility. Signed-off-by: Nate Sweet <nathanjsweet@pm.me>
1822474
to
91b5d6a
Compare
/test |
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.
LGTM 💯
This is using the library for another project. Given that the restore objects can be marshalled in and out of various data formats (like JSON, for example) this is good code hygiene. |
Sometimes restored IPRules do not have the
default "nil" populating their IP maps, but
instead have an empty map structure.
We need to check for this restore possibility.