Fixed doc example

Image.data is a method, not an attribute.

DocImpact

Change-Id: I16555e456dcb2c9719de6c44c01ab68e82ad0590
This commit is contained in:
Georges Dubus 2014-10-21 17:03:19 +02:00
parent cfe0623520
commit f931a20d25

@ -11,7 +11,7 @@ In order to use the python api directly, you must first obtain an auth token and
>>> print image.status >>> print image.status
'active' 'active'
>>> with open('/tmp/copyimage.iso', 'wb') as f: >>> with open('/tmp/copyimage.iso', 'wb') as f:
for chunk in image.data: for chunk in image.data():
f.write(chunk) f.write(chunk)
>>> image.delete() >>> image.delete()