Merge "Fixed doc example"
This commit is contained in:
commit
7ab3490978
|
@ -17,7 +17,7 @@ In order to use the python api directly, you must first obtain an auth token and
|
||||||
'active'
|
'active'
|
||||||
>>> image.update(properties=dict(my_custom_property='value'))
|
>>> image.update(properties=dict(my_custom_property='value'))
|
||||||
>>> 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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue