Skip to content

Commit

Permalink
Closes-Bug: #1600044
Browse files Browse the repository at this point in the history
handle case if contrail stanza is not defined for cluster in determining
if cluster has ext lb

Change-Id: Ia373d5e9ed6d31a00d1be1674e36d3872de105dd
  • Loading branch information
kamleshp committed Jul 9, 2016
1 parent bed9cb5 commit 8561863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server_mgr_main.py
Expand Up @@ -3596,7 +3596,7 @@ def is_cluster_ext_lb(self, cluster):
cluster_params = eval(cluster['parameters'])
cluster_provision_params = cluster_params.get("provision", {})
if cluster_provision_params:
cluster_params_lb = cluster_provision_params['contrail']
cluster_params_lb = cluster_provision_params.get("contrail", {})
if cluster_params_lb.get('loadbalancer', None):
return True
return False
Expand Down

0 comments on commit 8561863

Please sign in to comment.