<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-glanceclient.git/glanceclient/common/utils.py, branch 2.5.0</title>
<subtitle>opendev.org: openstack/python-glanceclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/'/>
<entry>
<title>py3: Fix encoding and use sys.stdin.buffer</title>
<updated>2016-07-25T14:43:08+00:00</updated>
<author>
<name>Sirushti Murugesan</name>
<email>sirushti.murugesan@hp.com</email>
</author>
<published>2016-06-23T13:38:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=376037d3716244c32acf7fd4c096c99a8fa1b4c7'/>
<id>376037d3716244c32acf7fd4c096c99a8fa1b4c7</id>
<content type='text'>
* exc.py: Encode body in response before calling replace over it.
* http.py: prepend the bytes literal to the empty string or else
  we hit bug 1342080 again in python 3.
* utils.py: Use sys.stdin.buffer in python 3.

Change-Id: Ieefb8c633658e507486438e5518c5d53e819027d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* exc.py: Encode body in response before calling replace over it.
* http.py: prepend the bytes literal to the empty string or else
  we hit bug 1342080 again in python 3.
* utils.py: Use sys.stdin.buffer in python 3.

Change-Id: Ieefb8c633658e507486438e5518c5d53e819027d
</pre>
</div>
</content>
</entry>
<entry>
<title>Add comment about workaround for py3</title>
<updated>2016-07-13T17:04:19+00:00</updated>
<author>
<name>Louis Taylor</name>
<email>louis@kragniz.eu</email>
</author>
<published>2016-07-13T15:18:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=3047afb12178cbb22551d4b89068190623085010'/>
<id>3047afb12178cbb22551d4b89068190623085010</id>
<content type='text'>
Change-Id: Ibe8720c14e8ec401bc0d595915cbb962f4021bcb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ibe8720c14e8ec401bc0d595915cbb962f4021bcb
</pre>
</div>
</content>
</entry>
<entry>
<title>image-download: tests to catch stray output</title>
<updated>2016-06-29T16:08:30+00:00</updated>
<author>
<name>Stuart McLaren</name>
<email>stuart.mclaren@hp.com</email>
</author>
<published>2015-08-31T10:29:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=7ed22a91d3a587c8e0af2072a421812d176753f4'/>
<id>7ed22a91d3a587c8e0af2072a421812d176753f4</id>
<content type='text'>
Add unit tests to ensure that any stray output (eg print
statements) during image-download cause a test failure.

Regression test for bug 1488914.

Change-Id: Ic19ba5693d059bf7c283702e7c333672a878a1a1
Partial-bug: 1488914
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add unit tests to ensure that any stray output (eg print
statements) during image-download cause a test failure.

Regression test for bug 1488914.

Change-Id: Ic19ba5693d059bf7c283702e7c333672a878a1a1
Partial-bug: 1488914
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unused skip_authentication decorator</title>
<updated>2016-06-02T13:25:30+00:00</updated>
<author>
<name>kairat_kushaev</name>
<email>kkushaev@mirantis.com</email>
</author>
<published>2016-04-04T15:48:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=f58a73495f81dea700f229117f567bad93e9edaf'/>
<id>f58a73495f81dea700f229117f567bad93e9edaf</id>
<content type='text'>
skip_authentication is not used as decorator for glanceclient methods.
So this method can be safely removed from glance codebase because
it is artifact from old implementation.

Change-Id: I235b4c6b835c75266d8fae1bb603685aa17ad497
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
skip_authentication is not used as decorator for glanceclient methods.
So this method can be safely removed from glance codebase because
it is artifact from old implementation.

Change-Id: I235b4c6b835c75266d8fae1bb603685aa17ad497
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Re-enable stacktracing when --debug is used"</title>
<updated>2016-04-18T17:04:57+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-04-18T17:04:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=12e92558e50d0aa200d2ca0f98a7110e0adce922'/>
<id>12e92558e50d0aa200d2ca0f98a7110e0adce922</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typos in docstrings and comments</title>
<updated>2016-04-11T02:08:02+00:00</updated>
<author>
<name>Dao Cong Tien</name>
<email>tiendc@vn.fujitsu.com</email>
</author>
<published>2016-04-06T04:19:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=9faa9d47aad697885eb463cb37bc7eb53f211cea'/>
<id>9faa9d47aad697885eb463cb37bc7eb53f211cea</id>
<content type='text'>
Update a comment to be more meaningful

Change-Id: Ie1aa46917c1a253db92a0dc819803a1d3e795b07
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update a comment to be more meaningful

Change-Id: Ie1aa46917c1a253db92a0dc819803a1d3e795b07
</pre>
</div>
</content>
</entry>
<entry>
<title>Re-enable stacktracing when --debug is used</title>
<updated>2016-04-07T15:42:51+00:00</updated>
<author>
<name>Stuart McLaren</name>
<email>stuart.mclaren@hp.com</email>
</author>
<published>2016-03-30T11:56:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=d0ec3a7ebb6add2e96c4a06231939baf56e2139a'/>
<id>d0ec3a7ebb6add2e96c4a06231939baf56e2139a</id>
<content type='text'>
Commit 1f89beb6098f4f6a8d8c2912392b273bc068b2e3 introduced the behaviour
that a stacktrace is printed if an exception is encountered.

This helped make the client more supportable:

 $ glance --debug image-list
  .
  .
  .
  File "glanceclient/common/http.py", line 337, in get_http_client
    xxx
 NameError: global name 'xxx' is not defined
 global name 'xxx' is not defined

The behaviour was lost at some point. This patch re-enables it.

Change-Id: I25fc8624797909d606590747f54b9cf649ade079
Closes-bug: 1563830
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 1f89beb6098f4f6a8d8c2912392b273bc068b2e3 introduced the behaviour
that a stacktrace is printed if an exception is encountered.

This helped make the client more supportable:

 $ glance --debug image-list
  .
  .
  .
  File "glanceclient/common/http.py", line 337, in get_http_client
    xxx
 NameError: global name 'xxx' is not defined
 global name 'xxx' is not defined

The behaviour was lost at some point. This patch re-enables it.

Change-Id: I25fc8624797909d606590747f54b9cf649ade079
Closes-bug: 1563830
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Handle 403 forbidden on download"</title>
<updated>2016-02-29T13:04:08+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-02-29T13:04:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=6aaa6f2f8c09a9af98bf6f340c3a9ee8203cca5d'/>
<id>6aaa6f2f8c09a9af98bf6f340c3a9ee8203cca5d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle 403 forbidden on download</title>
<updated>2016-02-24T18:31:38+00:00</updated>
<author>
<name>Stuart McLaren</name>
<email>stuart.mclaren@hp.com</email>
</author>
<published>2015-12-07T16:46:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=5b9f21b38b59322d6c9423aa4f5b028e72dd01f6'/>
<id>5b9f21b38b59322d6c9423aa4f5b028e72dd01f6</id>
<content type='text'>
A download of a deactivated image may result in a 403.
The cli should catch this error rather than stack trace.

We also catch other unexpected http responses.

Change-Id: If33fbc3a56cdb02b3ab32a6479a67fff20b4b1a9
Closes-bug: 1523612
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A download of a deactivated image may result in a 403.
The cli should catch this error rather than stack trace.

We also catch other unexpected http responses.

Change-Id: If33fbc3a56cdb02b3ab32a6479a67fff20b4b1a9
Closes-bug: 1523612
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix image-download to stdout on Python 3.x</title>
<updated>2015-12-22T03:42:15+00:00</updated>
<author>
<name>Andy Botting</name>
<email>andy@andybotting.com</email>
</author>
<published>2015-12-21T01:18:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=3caeb4504e7f96130f904356bf45f93fcd7834c6'/>
<id>3caeb4504e7f96130f904356bf45f93fcd7834c6</id>
<content type='text'>
Glance image-download to stdout fails on Python3 due to sys.stdout.write
not allowing bytes to be written directly.

A good description of the issue is listed at http://bugs.python.org/issue18512

Closes-Bug: #1528083

Change-Id: I2963914e2e0744410267b5735ff77939413916d4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Glance image-download to stdout fails on Python3 due to sys.stdout.write
not allowing bytes to be written directly.

A good description of the issue is listed at http://bugs.python.org/issue18512

Closes-Bug: #1528083

Change-Id: I2963914e2e0744410267b5735ff77939413916d4
</pre>
</div>
</content>
</entry>
</feed>
