summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGeorges Dubus <georges.dubus@numergy.com>2014-10-21 17:03:19 +0200
committerGeorges Dubus <georges.dubus@numergy.com>2014-10-22 08:02:46 +0000
commitf931a20d25cf34a2b425088449d0ab5b1613f790 (patch)
treefd1a608e64c1857e3312bf05da21f8f0f4bd8de6 /doc
parentcfe06235207d50d6d36b3d8b3e87608412038c80 (diff)
downloadpython-glanceclient-f931a20d25cf34a2b425088449d0ab5b1613f790.tar.gz
Fixed doc example
Image.data is a method, not an attribute. DocImpact Change-Id: I16555e456dcb2c9719de6c44c01ab68e82ad0590
Diffstat (limited to 'doc')
-rw-r--r--doc/source/index.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index f33e808..dc9a0db 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -11,7 +11,7 @@ In order to use the python api directly, you must first obtain an auth token and
>>> print image.status
'active'
>>> with open('/tmp/copyimage.iso', 'wb') as f:
- for chunk in image.data:
+ for chunk in image.data():
f.write(chunk)
>>> image.delete()