Comment 2 for bug 1592983

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

Reviewed: https://review.openstack.org/330209
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=2fbb6587df357583fe03b8616d7b95f79382af20
Submitter: Jenkins
Branch: master

commit 2fbb6587df357583fe03b8616d7b95f79382af20
Author: Kevin Benton <email address hidden>
Date: Sat Jun 11 08:23:48 2016 -0700

    Allow self-unsubscribing callbacks

    This adjusts the notify loop logic to handle the case where
    a callback causes a subscription or unsubscription that changes
    the subscriber dictionary to change during iteration.

    It was just using .items() which solved the problem for py27 but
    was not creating an actual copy in py34. This just calls list()
    on .items() to make sure we get a list in both cases.

    Change-Id: Iee9d675faf30ec714b4f5c77128d8843d545ecfd
    Closes-Bug: #1592983