Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from glanceclient import Client
- OS_IMAGE_ENDPOINT = 'http://16.164.217.124:9292'
- OS_AUTH_TOKEN = '6aec4894efbc474d93b6ed139d023ad0'
- glance = Client('1', endpoint=OS_IMAGE_ENDPOINT, token=OS_AUTH_TOKEN)
- images = glance.images.list()
- print images
- for image in images:
- image_dict = image.to_dict()
- print image_dict['size']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement