Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

vcd disk list fails with error #548

Open
insanemal opened this issue Mar 11, 2021 · 3 comments
Open

vcd disk list fails with error #548

insanemal opened this issue Mar 11, 2021 · 3 comments

Comments

@insanemal
Copy link

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
Copy link
Author

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
Copy link

skydion commented Oct 6, 2021

I have the same issue... version 24.0.1

@mavatko
Copy link

mavatko commented Jun 12, 2023

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'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants