PureStorage-OpenConnect / rest-client

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

purestorage sdk rest_version wont accept higher than default #25

Open joefodor opened 1 year ago

joefodor commented 1 year ago

An option to use different rest_versions is apart of the purestorage.FlashArray() but it wont accept anything higher than 1.19.

Traceback (most recent call last): File "/repo/my_tests.py", line 94, in client = get_single_array() File "/repo/my_tests.py", line 33, in get_single_array array = purestorage.FlashArray('10.246.95.26', File "/usr/local/lib/python3.9/site-packages/purestorage/purestorage.py", line 141, in init self._rest_version = self._check_rest_version(rest_version) File "/usr/local/lib/python3.9/site-packages/purestorage/purestorage.py", line 214, in _check_rest_version raise ValueError(msg.format(version)) ValueError: Library is incompatible with REST API version 1.20