From f931a20d25cf34a2b425088449d0ab5b1613f790 Mon Sep 17 00:00:00 2001 From: Georges Dubus Date: Tue, 21 Oct 2014 17:03:19 +0200 Subject: Fixed doc example Image.data is a method, not an attribute. DocImpact Change-Id: I16555e456dcb2c9719de6c44c01ab68e82ad0590 --- doc/source/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') 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() -- cgit v1.2.1