Adapt plugin to new annotation format
Patch I5bce85029f9edfed56ca216f465226b9bcc0d21b aims to change Pod annotation format from bare dictionary to o.vo to be able to make changes in it in the future. This patch implements compatibility with that in kuryr-tempest-plugin. Change-Id: Ied6b5883cf4bfe6a499813c65b49257de040c4b5
This commit is contained in:
parent
719aa0d68f
commit
d7a6bf92e6
|
@ -122,7 +122,10 @@ class BaseKuryrScenarioTest(manager.NetworkScenarioTest):
|
|||
|
||||
# FIXME(dulek): We need this compatibility code to run stable/queens.
|
||||
# Remove this once it's no longer supported.
|
||||
kuryr_if = kuryr_if.get('eth0', kuryr_if)
|
||||
if 'eth0' in kuryr_if:
|
||||
kuryr_if = kuryr_if['eth0']
|
||||
elif kuryr_if.get('versioned_object.name') == 'PodState':
|
||||
kuryr_if = kuryr_if['versioned_object.data']['default_vif']
|
||||
|
||||
return kuryr_if['versioned_object.data']['id']
|
||||
|
||||
|
|
Loading…
Reference in New Issue