summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorRavi Jethani <ravishekar.jethani@nttdata.com>2016-04-22 13:54:49 +0000
committerAbhishek Kekane <abhishek.kekane@nttdata.com>2017-01-20 14:50:42 +0530
commit610177a779b95f931356c1e90b05a5bffd2616b3 (patch)
treed0404ab930701c9e8743244d6c00d80b482b8707 /requirements.txt
parent54e6faadf216b61d2d2f1b2ad6f4dd925f053117 (diff)
downloadpython-glanceclient-610177a779b95f931356c1e90b05a5bffd2616b3.tar.gz
Add request id to returned objects
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
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt
index eebfbfd..cf01077 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -10,3 +10,4 @@ warlock!=1.3.0,<2,>=1.0.1 # Apache-2.0
six>=1.9.0 # MIT
oslo.utils>=3.18.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
+wrapt>=1.7.0 # BSD License