commit b019821abd9304f4eeaea4ed3ea37de8e903eb9e
Author: Brian Haley <email address hidden>
Date: Tue Mar 24 14:10:38 2020 -0400
Use dict .get() to avoid a KeyError in the segment plugin
On subnet delete, the supplied subnet in the post hook
could contain a subnet without certain items, leading to
a KeyError in the segment plugin. Fix a number of these
occurences so this cannot happen.
Also fixed similar code in the segment tests.
Change-Id: I645610febde446b78ed6edd868e699673648a4de
Closes-bug: #1868724
(cherry picked from commit 07b015d7897d6cea48eec1fdd02c9e19d4990973)
Reviewed: https:/ /review. opendev. org/725278 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b019821abd9 304f4eeaea4ed3e a37de8e903eb9e
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit b019821abd9304f 4eeaea4ed3ea37d e8e903eb9e
Author: Brian Haley <email address hidden>
Date: Tue Mar 24 14:10:38 2020 -0400
Use dict .get() to avoid a KeyError in the segment plugin
On subnet delete, the supplied subnet in the post hook
could contain a subnet without certain items, leading to
a KeyError in the segment plugin. Fix a number of these
occurences so this cannot happen.
Also fixed similar code in the segment tests.
Change-Id: I645610febde446 b78ed6edd868e69 9673648a4de a48eec1fdd02c9e 19d4990973)
Closes-bug: #1868724
(cherry picked from commit 07b015d7897d6ce