<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-cinderclient.git/cinderclient/exceptions.py, branch 1.7.1</title>
<subtitle>opendev.org: openstack/python-cinderclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/'/>
<entry>
<title>Support api-microversions</title>
<updated>2016-04-19T17:19:45+00:00</updated>
<author>
<name>scottda</name>
<email>scott.dangelo@hpe.com</email>
</author>
<published>2016-04-05T21:45:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=3f75b48f067abae846655e48ce8f96fda79a3ae8'/>
<id>3f75b48f067abae846655e48ce8f96fda79a3ae8</id>
<content type='text'>
Changes to cinderclient to use microversions.

Implements: blueprint api-microversion-support-for-cinderclient
api-microversion-support-for-cinderclient

Change-Id: I840a1162b88e8ff36fa3fc4e1d6b9317104df3e0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changes to cinderclient to use microversions.

Implements: blueprint api-microversion-support-for-cinderclient
api-microversion-support-for-cinderclient

Change-Id: I840a1162b88e8ff36fa3fc4e1d6b9317104df3e0
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't print HTTP codes for non-HTTP errors</title>
<updated>2016-02-24T16:00:05+00:00</updated>
<author>
<name>Eric Harney</name>
<email>eharney@redhat.com</email>
</author>
<published>2016-02-23T22:55:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=c4c2c56042e7829aa9ee0c4b7fad93d039fb4841'/>
<id>c4c2c56042e7829aa9ee0c4b7fad93d039fb4841</id>
<content type='text'>
This changes:
 $ cinder rename asdf
 ERROR: Must supply either name or description. (HTTP 1)

To:
 $ cinder rename asdf
 ERROR: Must supply either name or description.

Affects rename, snapshot-rename, consisgroup-update,
and consisgroup-create-from-src.
(consisgroup-* previously printed HTTP 400.)

Closes-Bug: #1549020
Closes-Bug: #1549026
Change-Id: Ia920b3b75b53170789b694cbdd49100bd6a72d21
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This changes:
 $ cinder rename asdf
 ERROR: Must supply either name or description. (HTTP 1)

To:
 $ cinder rename asdf
 ERROR: Must supply either name or description.

Affects rename, snapshot-rename, consisgroup-update,
and consisgroup-create-from-src.
(consisgroup-* previously printed HTTP 400.)

Closes-Bug: #1549020
Closes-Bug: #1549026
Change-Id: Ia920b3b75b53170789b694cbdd49100bd6a72d21
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ClientException init when there is no message on py34</title>
<updated>2015-08-04T21:21:52+00:00</updated>
<author>
<name>Matt Riedemann</name>
<email>mriedem@us.ibm.com</email>
</author>
<published>2015-08-04T21:20:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=03542ee65a5e818a5d908a85a6a9eba21ef63b53'/>
<id>03542ee65a5e818a5d908a85a6a9eba21ef63b53</id>
<content type='text'>
BaseException.message was removed in python 3 per PEP 0352 so if no
message is passed to the ClientException __init__ it will blow up:

AttributeError: type object 'ClientException' has no attribute 'message'

So this change does two things:

1. Default to 'n/a' for message and details when body['keys'] doesn't
   have a message or details in it (which should be fine since
   from_response defaults to n/a if 'keys' is not in body).
2. Use getattr for self.__class__.message and default to None if that
   attribute is not set.  Arguably we could just remove this and make
   the message kwarg default to 'n/a' in ClientException.__init__ but
   I figured that was more invasive.

Closes-Bug: #1481478

Change-Id: I738cb9c8d4f015048c45a1df16bf18e29190e392
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BaseException.message was removed in python 3 per PEP 0352 so if no
message is passed to the ClientException __init__ it will blow up:

AttributeError: type object 'ClientException' has no attribute 'message'

So this change does two things:

1. Default to 'n/a' for message and details when body['keys'] doesn't
   have a message or details in it (which should be fine since
   from_response defaults to n/a if 'keys' is not in body).
2. Use getattr for self.__class__.message and default to None if that
   attribute is not set.  Arguably we could just remove this and make
   the message kwarg default to 'n/a' in ClientException.__init__ but
   I figured that was more invasive.

Closes-Bug: #1481478

Change-Id: I738cb9c8d4f015048c45a1df16bf18e29190e392
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo in comment message</title>
<updated>2015-07-02T07:51:59+00:00</updated>
<author>
<name>Lin Yang</name>
<email>lin.a.yang@intel.com</email>
</author>
<published>2015-04-30T10:28:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=56778a1220eb1e15e1edea3e0ffed57e8bdd0fb4'/>
<id>56778a1220eb1e15e1edea3e0ffed57e8bdd0fb4</id>
<content type='text'>
an request =&gt; a request
rest =&gt; resp
exception_from_response() =&gt; exceptions.from_response() '.' operator means call
from_response() in exceptions module.

Change-Id: I5e780dd2882b39d1b39f7c64bf274e90934c09ec
Signed-off-by: Lin Yang &lt;lin.a.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
an request =&gt; a request
rest =&gt; resp
exception_from_response() =&gt; exceptions.from_response() '.' operator means call
from_response() in exceptions module.

Change-Id: I5e780dd2882b39d1b39f7c64bf274e90934c09ec
Signed-off-by: Lin Yang &lt;lin.a.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed typos found by RETF rules</title>
<updated>2014-09-08T11:31:22+00:00</updated>
<author>
<name>Christian Berendt</name>
<email>berendt@b1-systems.de</email>
</author>
<published>2014-05-02T16:32:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=17e4d6c381b2854dc3f9744738cae5305968ff27'/>
<id>17e4d6c381b2854dc3f9744738cae5305968ff27</id>
<content type='text'>
Rules are available at
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos

Change-Id: I8de0631346b703870ce8ebe9ce728a0360f1ba7f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rules are available at
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos

Change-Id: I8de0631346b703870ce8ebe9ce728a0360f1ba7f
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "When there is no error body return the HTTP reason"</title>
<updated>2014-04-18T19:30:36+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-04-18T19:30:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=04eaa48eb606d3136e091fa6c0ef406438341502'/>
<id>04eaa48eb606d3136e091fa6c0ef406438341502</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>When there is no error body return the HTTP reason</title>
<updated>2014-03-03T23:00:44+00:00</updated>
<author>
<name>Russell Sim</name>
<email>russell.sim@gmail.com</email>
</author>
<published>2013-11-07T00:28:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=52ce0b205e336d7545947a13b4a4f3dfc490d51e'/>
<id>52ce0b205e336d7545947a13b4a4f3dfc490d51e</id>
<content type='text'>
Return the response reason when there is no message body to return.

DocImpact
Change-Id: Ia60da4f04b059a13fcbe0059bb42fd77f272d8aa
Closes-Bug: 1248773
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Return the response reason when there is no message body to return.

DocImpact
Change-Id: Ia60da4f04b059a13fcbe0059bb42fd77f272d8aa
Closes-Bug: 1248773
</pre>
</div>
</content>
</entry>
<entry>
<title>Add auth_plugin support to cinderclient</title>
<updated>2014-02-14T21:09:44+00:00</updated>
<author>
<name>Cory Stone</name>
<email>corystone@gmail.com</email>
</author>
<published>2014-02-14T19:42:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=d5334aa929beb4190ae04fddc98e693df142b9bd'/>
<id>d5334aa929beb4190ae04fddc98e693df142b9bd</id>
<content type='text'>
With CINDER_RAX_AUTH being rightfully removed, cinderclient is no longer
compatible with Rackspace/any non-keystone auth. To fix this, I stole
auth_system/auth_plugin from novaclient's implementation.

See https://review.openstack.org/#/c/23820/.

Change-Id: If5f84003f868ef02bb7eb7da67cf62018602e8f0
Closes-Bug: 1280393
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With CINDER_RAX_AUTH being rightfully removed, cinderclient is no longer
compatible with Rackspace/any non-keystone auth. To fix this, I stole
auth_system/auth_plugin from novaclient's implementation.

See https://review.openstack.org/#/c/23820/.

Change-Id: If5f84003f868ef02bb7eb7da67cf62018602e8f0
Closes-Bug: 1280393
</pre>
</div>
</content>
</entry>
<entry>
<title>python3: Refactor dict for python2/python3 compat</title>
<updated>2013-10-11T13:04:49+00:00</updated>
<author>
<name>Chuck Short</name>
<email>chuck.short@canonical.com</email>
</author>
<published>2013-10-07T02:39:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=b0b8afaf55ffdadf5ee329edd92b9cac1be8c2d1'/>
<id>b0b8afaf55ffdadf5ee329edd92b9cac1be8c2d1</id>
<content type='text'>
Python3 changed the behavior of dict.keys such that it is now
returns a dict_keys object, which is iterable but not indexable.
You can get the python2 result back with an explicit call to list.

Refactor list(*.keys()) so that it just uses list().

Change-Id: Ib2e9646ac967e9bd7cc4f47e2099f5d1358808a9
Signed-off-by: Chuck Short &lt;chuck.short@canonical.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python3 changed the behavior of dict.keys such that it is now
returns a dict_keys object, which is iterable but not indexable.
You can get the python2 result back with an explicit call to list.

Refactor list(*.keys()) so that it just uses list().

Change-Id: Ib2e9646ac967e9bd7cc4f47e2099f5d1358808a9
Signed-off-by: Chuck Short &lt;chuck.short@canonical.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "convert third-party exception to ConnectionError"</title>
<updated>2013-08-12T12:17:14+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2013-08-12T12:17:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-cinderclient.git/commit/?id=2ba74ecb54befaee691434523e53a880760b62a3'/>
<id>2ba74ecb54befaee691434523e53a880760b62a3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
