Isilon / isilon_sdk

Official repository for isilon_sdk. All language bindings are available for download under the 'Releases' tab.
MIT License
50 stars 21 forks source link

create_swagger_config fails with KeyError on cygwin #20

Closed franshamk closed 8 years ago

franshamk commented 8 years ago

Using python 2.7.8 under babun (cygwin) I get python failures. The identical command works fine on CentOS 7, python 2.7.9. Not urgent, just FYI.

{ isilon_sdk } master » python components/create_swagger_config.py -i [REDACTED] -o onefs_8.0_swagger.json

Please provide the username used to access [REDACTED] via PAPI: [REDACTED]
Password:
Traceback (most recent call last):
  File "components/create_swagger_config.py", line 1228, in <module>
    main()
  File "components/create_swagger_config.py", line 1104, in main
    excludeEndPoints)
  File "components/create_swagger_config.py", line 903, in GetEndpointPaths
    numEndPoints = len(endPointListJson["directory"])
KeyError: 'directory'
{ isilon_sdk } master » python -V                                         ~/swagger2/isilon_sdk 1
Python 2.7.8
apecoraro commented 8 years ago

What does the resp object that gets returned from the requests.get(...) call on line 897 look like? I'm guessing that for some reason the GET query returned something other than a list of end points, which I'm guessing is due to differences in how the requests package works in Python 2.7.8 versus Python 2.7.9.

franshamk commented 8 years ago

Might have been an environmental hiccup. I added a print statement for the object, but now it's working fine. No errors anymore. Thanks!