Skip to content

Commit

Permalink
[ST]: Set interface list to empty if not found, ST should not crash
Browse files Browse the repository at this point in the history
Change-Id: I72b37cd856f980bd2725613ef118b5696d8fd0bd
Closes-Bug: #1573267
  • Loading branch information
sbalineni committed Apr 21, 2016
1 parent 642052a commit 319dbbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/schema-transformer/config_db.py
Expand Up @@ -3723,8 +3723,8 @@ def get_virtual_networks(self, si_props):
st_obj = DBBaseST().read_vnc_obj(uuid, obj_type='service_template')
st_props = st_obj.get_service_template_properties()

st_if_list = st_props.get_interface_type()
si_if_list = si_props.get_interface_list()
st_if_list = st_props.get_interface_type() or []
si_if_list = si_props.get_interface_list() or []
for (st_if, si_if) in zip(st_if_list, si_if_list):
if st_if.get_service_interface_type() == 'left':
left_vn = si_if.get_virtual_network()
Expand Down

0 comments on commit 319dbbf

Please sign in to comment.