commit 0f0608d4c56701d31a5356961e2e1b905d78a941
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
(cherry picked from commit 674344b1826b4e2724b3fc397f20984fe6a8ad9c)
Reviewed: https:/ /review. opendev. org/701964 /git.openstack. org/cgit/ openstack/ kuryr-kubernete s/commit/ ?id=0f0608d4c56 701d31a5356961e 2e1b905d78a941
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 0f0608d4c56701d 31a5356961e2e1b 905d78a941
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 ip_prefixes' : {'pod_ip': 'np-namespace'}}.
format: {'remote_
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: Ic40878a830bcc3 2da06c0ab2763f5 93595e81bf2 724b3fc397f2098 4fe6a8ad9c)
(cherry picked from commit 674344b1826b4e2