- from glanceclient import Client
- OS_IMAGE_ENDPOINT = 'http://18.104.22.168: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']
glance get size of image
a guest Dec 3rd, 2015 21 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data