vmware-archive / vcd-cli

Command Line Interface for VMware vCloud Director
https://vmware.github.io/vcd-cli
Other
163 stars 104 forks source link

vcd disk list fails with error #548

Open insanemal opened 3 years ago

insanemal commented 3 years ago

After the last VCD upgrade vcd-cli has started throwing errors when doing "vcd disk list"

vcd disk list
Usage: vcd disk list [OPTIONS]
Try "vcd disk list -h" for help.

Error: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Other commands appear unaffected.

I'm assuming there has been a change in the reply from vcd

insanemal commented 3 years ago

This is kind of a huge issue, can't use automation scripts..

Is there more info I can give to get this some more attention?

skydion commented 2 years ago

I have the same issue... version 24.0.1

mavatko commented 1 year ago

This issue is still there and happens with newer APIs. If you login with older version eg. vcd login -V 32.0. vcd disk list will show the output

Edit: https://developer.vmware.com/apis/1245/vmware-cloud-director/doc/doc//types/DiskType.html It is because of an API change in v33.0 where the 'sizeMb' was introduced, but disk.py expects 'size'