Skip to content

Commit

Permalink
Allow custom configs with LBaaS
Browse files Browse the repository at this point in the history
This fix checks if custom_attributes is
not specified or not in the create config.
If not specified, it skips

Closes Bug: #1475393

Change-Id: I55d524586fb906e801922af137309bfcdedf9a89
  • Loading branch information
Varun Lodaya authored and Varun Lodaya committed Aug 19, 2015
1 parent 93adeef commit b2ffb87
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -173,7 +173,7 @@ def create(self, context, pool):
pool.set_service_appliance_set(sas_obj)

# Custom attributes
if p['custom_attributes']:
if p['custom_attributes'] != attr.ATTR_NOT_SPECIFIED:
custom_attributes = KeyValuePairs()
self.create_update_custom_attributes(p['custom_attributes'], custom_attributes)
pool.set_loadbalancer_pool_custom_attributes(custom_attributes)
Expand Down

0 comments on commit b2ffb87

Please sign in to comment.