Comment 5 for bug 1868724

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/train)

Reviewed: https://review.opendev.org/725278
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=b019821abd9304f4eeaea4ed3ea37de8e903eb9e
Submitter: Zuul
Branch: stable/train

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)