Skip to content

Commit

Permalink
Check for health_check_type key existence before accessing
Browse files Browse the repository at this point in the history
Change-Id: I0c55073cb6442e15d1bdbb39c2a87450d7dbaba4
Closes-Bug:#1609685
  • Loading branch information
Senthilnathan Murugappan committed Aug 4, 2016
1 parent 2b3d0f3 commit 4fb5d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/svc-monitor/svc_monitor/port_tuple.py
Expand Up @@ -116,7 +116,7 @@ def update_health_check_iip(self, si, port, vmi):
continue
if if_type['interface_type'] != vmi.if_type:
continue
if health.params['health_check_type'] != 'end-to-end':
if health.params.get('health_check_type', None) != 'end-to-end':
continue
allocate_hc_iip = True
break
Expand Down

0 comments on commit 4fb5d5a

Please sign in to comment.