commit | e65ec45253950a1aa9b6eab4a85a38bd724b44ca | [log] [tgz] |
---|---|---|
author | Felipe Monteiro <felipe.monteiro@att.com> | Tue Sep 26 06:47:03 2017 +0100 |
committer | Felipe Monteiro <felipe.monteiro@att.com> | Tue Sep 26 06:47:03 2017 +0100 |
tree | 418455ad36976b6ff395aa75e43f3fcf06198a89 | |
parent | 2812b5c57ba6c72bf2766214591b303e6171ef20 [diff] |
Add compare header version to create_image_from_server helper This PS uses `compare_version_header_to_response` in `api_version_utils` in create_image_from_server to correctly parse the image_id from the returned image, based on the microversion in the response body. According to the Nova docs for this API [0], the image_id is located in location header for < 2.45 microversion but for >= 2.45 it is located in resp.response['image_id']. This PS also removes an unnecessary LOG.debug statement from `compare_version_header_to_response`, pointed out by last comment in this other PS [1]. [0] https://developer.openstack.org/api-ref/compute/#create-image-createimage-action [1] Ib97e65cca468a09bbeaf68fcfe0e8192674a481e Change-Id: I413a0b79f47ead94a94ac5cf862002eeb0b8543b