Fix an innacuracy in an example in the docs
requests switched from json as a property to json as a method a long time ago Change-Id: I04a782615d5c80b5cf5127d8b1b31fde9ad95250
This commit is contained in:
@@ -42,7 +42,7 @@ Making a basic HTTP GET call is very simple::
|
|||||||
|
|
||||||
from openstack import transport
|
from openstack import transport
|
||||||
trans = transport.Transport()
|
trans = transport.Transport()
|
||||||
versions = trans.get('cloud.example.com:5000').json
|
versions = trans.get('cloud.example.com:5000').json()
|
||||||
|
|
||||||
will retrieve the version data served by the Identity API into a Python dict.
|
will retrieve the version data served by the Identity API into a Python dict.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user