Previously the server would return a 500 when creating
a datasource with an unknown driver. The API code
failed to catch the error being thrown in that case,
resulting in a 500.
This change has the API catch the proper error, and
return the appropriate error code.
Reviewed: https:/ /review. openstack. org/220301 /git.openstack. org/cgit/ openstack/ congress/ commit/ ?id=7f1bd3152c4 8a0df05f8d58cc7 7d984f8c62334d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7f1bd3152c48a0d f05f8d58cc77d98 4f8c62334d
Author: Tim Hinrichs <email address hidden>
Date: Thu Sep 3 13:15:50 2015 -0700
Catch driver not found in API
Previously the server would return a 500 when creating
a datasource with an unknown driver. The API code
failed to catch the error being thrown in that case,
resulting in a 500.
This change has the API catch the proper error, and
return the appropriate error code.
Change-Id: I52b2beb0c8ef08 fc93b0d864d1715 92aa1f3c099
Closes-bug: 1491970