Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type of storage volume is always custom #496

Closed
atrautsch opened this issue Dec 27, 2021 · 0 comments
Closed

Type of storage volume is always custom #496

atrautsch opened this issue Dec 27, 2021 · 0 comments

Comments

@atrautsch
Copy link
Contributor

When I print the names and types of storage volumes I always get the custom type.

pool = client.storage_pools.get(name)
volumes = pool.volumes.all()
for v in volumes:
   print(v.name, v.type)

Maybe the API changed at some point to singular instead of plural for the volume type.
For me the URLs that are used here look like this:
/1.0/storage-pools/$POOL/volumes/container/$NAME
instead of
/1.0/storage-pools/$POOL/volumes/containers/$NAME

The current swagger documentation also shows a singular type in the examples here.
My LXD version is: 4.0.8

atrautsch added a commit to atrautsch/pylxd that referenced this issue Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant