commit 3ebbdec7eeb29258ae6a535562073b48d5b051d0
Author: Clark Boylan <email address hidden>
Date: Wed Aug 20 14:18:44 2014 -0700
Handle sqlalchemy connection strings with drivers
SqlAlchemy connection strings may specify a driver using the +foo suffix
syntax in the url scheme. Ceilometer should accomodate this type of
schema when looking up sqlalchemy drivers with the stevedore driver
manager.
Fix this by splitting connection string schemes on '+' and retrieving
only the first element in the resulting list. Doing the entrypoint
lookup on this element will preserve the existing behavior in loading
sqlalchemy drivers and should be a noop for other backend types.
Reviewed: https:/ /review. openstack. org/115787 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=3ebbdec7eeb 29258ae6a535562 073b48d5b051d0
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3ebbdec7eeb2925 8ae6a535562073b 48d5b051d0
Author: Clark Boylan <email address hidden>
Date: Wed Aug 20 14:18:44 2014 -0700
Handle sqlalchemy connection strings with drivers
SqlAlchemy connection strings may specify a driver using the +foo suffix
syntax in the url scheme. Ceilometer should accomodate this type of
schema when looking up sqlalchemy drivers with the stevedore driver
manager.
Fix this by splitting connection string schemes on '+' and retrieving
only the first element in the resulting list. Doing the entrypoint
lookup on this element will preserve the existing behavior in loading
sqlalchemy drivers and should be a noop for other backend types.
Change-Id: Ieec5a4c47e8498 a533d4e6954682a 9bbe10bd4d9
Fixes-bug: 1359049