Skip to content

Commit

Permalink
LBAAS config generation on controller
Browse files Browse the repository at this point in the history
If si.kvps is none, exception will happen which
would trigger si without kvps

Change-Id: I0835964c4da2a7973d636c34aa0ffabdfa5bed5d
Partial-Bug: #1557222
  • Loading branch information
ymariappan committed Apr 4, 2016
1 parent 18f9c2d commit 1fa66c1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ def set_haproxy_config(self, si_id, lb_uuid, conf):
if not si:
return

for kv in si.kvps:
for kv in si.kvps or []:
if kv['key'] == 'haproxy_config':
if kv['value'] == conf:
return
if kv['value'] == conf:
return

si_obj = ServiceInstance()
si_obj.uuid = si.uuid
Expand Down

0 comments on commit 1fa66c1

Please sign in to comment.