[Glance] How to filter out snapshots from images.List results? #3830
Replies: 1 comment 4 replies
|
there is no way to list each property right away, since glance has very special dynamic API. You can create a custom property for an image and then use it as a filter in a call. However gophercloud images.List accepts |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm currently trying to implement some metadata ("Properties") based image lookup logic, but I'm having the problem that there is no obvious way to differentiate between "actual" images and snapshots, since the latter inherit all the metadata from the image they are based on.
So far I've found that checking for the existence of Image.Properties["block_device_mapping"] happens to work on my cloud, but is there a canonical way?
All reactions