Skip to content

Commit

Permalink
Bug #1679467 Convert OpenStack UUID to Contrail API UUID
Browse files Browse the repository at this point in the history
Openstack project IDs don't necessarily contain hyphens, but the
contrail API expects hyphens.
Convert the UUID before passing it to the Contrail API.

Change-Id: I71364bccca3b11df79bae7c9ae9e21075becc8c2
  • Loading branch information
Jasper Capel committed Apr 4, 2017
1 parent 9ffce8c commit da67240
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -116,7 +116,7 @@ def resource_list(self, tenant_id=None):
if tenant_id is None:
return self._api.loadbalancer_members_list()

pool_list = self._api.loadbalancer_pools_list(tenant_id)
pool_list = self._api.loadbalancer_pools_list(str(uuid.UUID(tenant_id)))
if 'loadbalancer-pools' not in pool_list:
return {}

Expand Down

0 comments on commit da67240

Please sign in to comment.