profitbricks/ProfitBricks-CLI-API — pull request #2 by fho (2012-08-21 10:01:24+00:00)
Title: fixed pb.client.getAllDataCenters(), missing import

Traceback (most recent call last):
File "test_pbapi.py", line 4, in
print p.getAllDataCenters()
File "/home/users/fholler/git/dc_network_test/ENV/local/lib/python2.7/site-packages/pb/client.py", line 111, in getAllDataCenters
return self._call("getAllDataCenters", [])
File "/home/users/fholler/git/dc_network_test/ENV/local/lib/python2.7/site-packages/pb/client.py", line 51, in _call
API.datacenters = result
NameError: global name 'API' is not defined