vcd-cli icon indicating copy to clipboard operation
vcd-cli copied to clipboard

vcd disk list fails with error

Open insanemal opened this issue 3 years ago • 3 comments

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 avatar Mar 11 '21 23:03 insanemal

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?

insanemal avatar Mar 22 '21 01:03 insanemal

I have the same issue... version 24.0.1

skydion avatar Oct 06 '21 14:10 skydion

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'

mavatko avatar Jun 12 '23 12:06 mavatko