summaryrefslogtreecommitdiff
path: root/glanceclient/v2/tasks.py
Commit message (Collapse)AuthorAgeFilesLines
* Do not use the six library.Cyril Roelandt2020-06-231-3/+4
| | | | Change-Id: I3dbfcfa0f5f590a41ed549afd44537d8ed41433a
* Add request id to returned objectsRavi Jethani2017-01-201-7/+10
| | | | | | | | | | | | | | | | | | | | | | | Adding two classes RequestIdProxy and GeneratorProxy derived from wrapt.ObjectProxy to wrap objects returned from the API. GeneratorProxy class is used to wrap generator objects returned by cases like images.list() etc. whereas RequestIdProxy class is used to wrap non-generator object cases like images.create() etc. In all cases the returned object will have the same behavior as the wrapped(original) object. However now the returned objects will have an extra property 'request_ids' which is a list of exactly one request id. For generator cases the request_ids property will be an empty list until the underlying generator is invoked at-least once. Co-Authored-By: Abhishek Kekane <abhishek.kekane@nttdata.com> Closes-Bug: #1525259 Blueprint: return-request-id-to-caller Change-Id: If8c0e0843270ff718a37ca2697afeb8da22aa3b1
* Merge "Fix warlock model creation"2.4.0Jenkins2016-08-121-1/+2
|\
| * Fix warlock model creationSabari Kumar Murugesan2016-07-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commands like glance md-namespace-show <namespace> fail because of a breaking change in warlock 1.3.0's model creation factory method. Warlock introduced a new kwarg 'resolver' in model_factory method but changed its position with the 'base_class' kwarg. Since we were calling the model_factory method with positional arg, this broke the model creation. Closes-Bug: #1596573 Change-Id: Ic7821f4fdb1b752e0c7ed2bc486299a06bf485c1
* | Replace OpenStack LLC with OpenStack Foundationdineshbhor2016-07-261-1/+1
|/ | | | | Change-Id: I5877db07031b12d8fa7ed774ac09d24f8906ea86 Closes-Bug: #1214176
* Docs are generated incorrectlyTom Cocozzello2016-03-221-1/+2
| | | | | | | | | When docs are generated with pbr command 'warnerrors = True' there are many doc problems that are shown. This patch fixes these problems. Change-Id: Idb804ab924782b6d7d379494987bdba2acbce568 Closes-Bug: #1557235
* Replace exception_to_str with oslo.utils functionkairat_kushaev2015-09-221-1/+1
| | | | | | | | | The oslo.utils function has exception_to_unicode that can replace glance util function exception_to_str. So we don't to have this exception_to_str function in glance anymore. Change-Id: I332bc55558087920fdd6ae2d822bece5166f5ba6
* Enable flake8 checksDarja Shakhray2015-07-211-4/+4
| | | | | | | | | | | | This commit enables new flake8 checks: * E265 block comment should start with '# ' * H405 multi line docstring summary not separated with an empty line * E123 closing bracket does not match indentation of opening bracket's line * H238 old style class declaration, use new style (inherit from `object`) * E128 continuation line under-indented for visual indent and makes related changes in the code. Change-Id: Ie993afc930f6b74d7a990bcaa9fc0e9f5ba1585c
* Creating task with invalid property crashes in py3Kamil Rykowski2015-04-021-1/+1
| | | | | | | | | | | | Currently when you are trying to set invalid additional property for task using py3 interpreter it will fail, because function `unicode` does not exist in py3. Fix it by replacing `unicode` with `utils.exception_to_str` which is used in other modules already. Change-Id: I5897868f801467a2eaa7585b5f2d578cef358426 Closes-Bug: 1439513
* Change oslo.utils to oslo_utilsLouis Taylor2015-02-051-1/+1
| | | | | | | | | | The oslo.utils libraries are moving away from namespace packages. This requires oslo.utils>=1.2.0 bp drop-namespace-packages Change-Id: I803df61e91eabb96329d859aef6bea03530fb84f
* Remove openstack.common.strutilsLouis Taylor2015-01-271-3/+2
| | | | | | | This module now lives in oslo.utils, so import it from there instead. Co-Authored-By: Ian Cordasco <ian.cordasco@rackspace.com> Change-Id: Ib35dc840992433542490670781badd9529ec8947
* Adds support for Glance Tasks callsFei Long Wang2014-09-221-0/+120
Add tasks operations on client side to support task create, list all and show. DocImpact Implement blueprint async-glance-workers Change-Id: Ib4b8e347a8a47817e3b427c8ba024e8c32f65155