Skip to content

fix: Prevent panic when merging IPAM config #766

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

Closed
wants to merge 2 commits into from

Conversation

idsulik
Copy link
Contributor

@idsulik idsulik commented Apr 5, 2025

Prevents a panic by adding type checks to ensure both base and override IPAM configs are lists. Returns a clear error if the input types are invalid.

Fixes: docker/compose#12709

@idsulik
Copy link
Contributor Author

idsulik commented Apr 22, 2025

@ndeloof hi! I see the issue was closed, but I think it'll be better to fix the panic itself as well

@ndeloof
Copy link
Collaborator

ndeloof commented Apr 22, 2025

@idsulik #767 was merged with a comparable fix, sorry I didn't noticed you already had one ready for this bug

@ndeloof ndeloof closed this Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] panic: interface conversion: interface {} is map[string]interface {}, not []interface {}
2 participants