Comment 2 for bug 1858301

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

Reviewed: https://review.opendev.org/701100
Committed: https://git.openstack.org/cgit/openstack/kuryr-kubernetes/commit/?id=674344b1826b4e2724b3fc397f20984fe6a8ad9c
Submitter: Zuul
Branch: master

commit 674344b1826b4e2724b3fc397f20984fe6a8ad9c
Author: Maysa Macedo <email address hidden>
Date: Sat Jan 4 23:11:05 2020 +0000

    Fix iteration over remote_ip_prefixes field

    The remote_ip_prefixes filed of a KuryrNetPolicy has the
    format: {'remote_ip_prefixes': {'pod_ip': 'np-namespace'}}.
    Right now, we're iterating over each remote_ip_prefixes
    dicts and retrieving its keys and values without fetching the
    dict items causing a ValueError. This commit fixes the
    issue by iterating over the dict items.

    Closes-bug: 1858301

    Change-Id: Ic40878a830bcc32da06c0ab2763f593595e81bf2