Fix exception handling
Change-Id: I13c21319031897efbeacc508821452e4663c033e
This commit is contained in:
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -1,3 +1,9 @@
|
|||||||
|
python-libraclient (1.2.3-1) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Fixes broken exception handler
|
||||||
|
|
||||||
|
-- Andrew Hutchings <andrew@linuxjedi.co.uk> Wed, 20 Feb 2013 19:31:25 +0000
|
||||||
|
|
||||||
python-libraclient (1.2.2-1) UNRELEASED; urgency=low
|
python-libraclient (1.2.2-1) UNRELEASED; urgency=low
|
||||||
|
|
||||||
* Allow newer versions of Novaclient again
|
* Allow newer versions of Novaclient again
|
||||||
|
@@ -12,4 +12,4 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
__version__ = "1.2.2"
|
__version__ = "1.2.3"
|
||||||
|
@@ -36,7 +36,7 @@ def from_response(response, body, url, method=None):
|
|||||||
response.status_code, novaclient.exceptions.ClientException
|
response.status_code, novaclient.exceptions.ClientException
|
||||||
)
|
)
|
||||||
if response.headers:
|
if response.headers:
|
||||||
request_id = response.get('x-compute-request-id')
|
request_id = response.headers.get('x-compute-request-id')
|
||||||
else:
|
else:
|
||||||
request_id = None
|
request_id = None
|
||||||
if body:
|
if body:
|
||||||
|
Reference in New Issue
Block a user