On 30 Aug 2024, at 17:21, Aaron Conole wrote:
> Python does not allow modifying a dictionary or list while iterating
> over the elements. The common idom to work around this is to create
> a copy of the keys or elements and then use that information to delete
> the corresponding entries from the original dictionary.
>
> This patch changes the iteration to use an intermediate copy and then
> modify the original dictionary. This avoids the associated
> RuntimeError.
>
> Reported-by: Eelco Chaudron <[email protected]>
> Reported-at:
> https://mail.openvswitch.org/pipermail/ovs-dev/2024-August/417000.html
> Fixes: 14b4c575c284 ("utilities: a top like tool for ovs-dpctl dump-flows.")
> Signed-off-by: Aaron Conole <[email protected]>
Thanks Aaron for fixing this.
Acked-by: Eelco Chaudron <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev