yadutaf / ovh-cli

Bare simple Command Line Interface (CLI) for OVH.
Other
31 stars 13 forks source link

Downloading schema /xdsl.json seems produce a KeyError #15

Open Sylvain303 opened 5 years ago

Sylvain303 commented 5 years ago

Hi,

I was used to use your code back in 2017

git clone https://github.com/yadutaf/ovh-cli.git
cd ovh-cli/
pip install wheel
pip install setuptools
pip install -r requirements.txt
# downloads json for API
./ovh-eu

But now it fails with:

[...]
Downloading schema /vrack.json
Downloading schema /xdsl.json

Traceback (most recent call last):
  File "./ovh-eu", line 181, in <module>
    parser = init_arg_parser(endpoint, options['refresh'])
  File "./ovh-eu", line 135, in init_arg_parser
    operation['description']
KeyError: 'description'

Hacking around the code, I managed to skip the faulty record. It seems still working after that. :)