PureStorage-OpenConnect / rest-client

Pure Storage FlashArray Python REST 1.X Client
BSD 2-Clause "Simplified" License
39 stars 23 forks source link

KeyError: 'version' #11

Closed ghost closed 5 years ago

ghost commented 6 years ago

While connecting to array, we are getting below error.

array = purestorage.FlashArray("xxxxxxxxxxxx", "pureuser", "pureuser")

Traceback (most recent call last): File "", line 1, in File "/opt/anaconda3/lib/python3.7/site-packages/purestorage/purestorage.py", line 138, in init self._rest_version = self._choose_rest_version() File "/opt/anaconda3/lib/python3.7/site-packages/purestorage/purestorage.py", line 217, in _choose_rest_version versions = self._list_available_rest_versions() File "/opt/anaconda3/lib/python3.7/site-packages/purestorage/purestorage.py", line 231, in _list_available_rest_versions return data["version"] KeyError: 'version'

zolstein commented 6 years ago

What version of Purity do you have installed on your array?

ghost commented 6 years ago

Version Revision 2.1.9 2018.03.16_8db6052d

zolstein commented 6 years ago

It looks like you tried to connect to a FlashBlade. This client only works with FlashArray. We have a separate REST client for communicating with FlashBlade, available here.

ghost commented 5 years ago

Thank You. I can able to connect with blade now.