SHARE
TWEET

Untitled

a guest Jun 25th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def show_images():
  2.     for image in list_images():
  3.         print(image)
  4.  
  5. /usr/bin/python3.5 /home/yasin/Desktop/openstack/public-cloud-middleware/test.py
  6. image list:
  7.  
  8. <generator object list at 0x7f7de766cc50>
  9. {'owner_project_name': 'admin', 'name': 'test_snaphshot', 'min_disk': 5, 'schema': '/v2/schemas/image', 'container_format': 'bare', 'image_location': 'snapshot', 'disk_format': 'qcow2', 'boot_roles': 'admin,heat_stack_owner', 'image_type': 'snapshot', 'instance_uuid': 'efa2087f-6d36-49ca-82ed-f19e42abaea3', 'visibility': 'private', 'checksum': '9c601d56ac4ef64f3172125246c7bda7', 'min_ram': 0, 'owner': 'e6d5fda13ef3482fa421082f4ec45ba9', 'file': '/v2/images/6a21e7c5-9833-430a-bb69-ba9b5b197cc6/file', 'status': 'active', 'created_at': '2019-04-27T06:21:11Z', 'virtual_size': None, 'user_id': 'f91790a5f6834a20a64190895a1d576e', 'size': 1242824704, 'protected': False, 'image_state': 'available', 'id': '6a21e7c5-9833-430a-bb69-ba9b5b197cc6', 'updated_at': '2019-04-27T06:23:30Z', 'owner_user_name': 'admin', 'tags': [], 'owner_id': 'e6d5fda13ef3482fa421082f4ec45ba9', 'base_image_ref': 'b9cbf849-604f-48d8-a991-4901d896e2fe'}
  10. {'name': 'ubuntu', 'min_disk': 0, 'schema': '/v2/schemas/image', 'container_format': 'bare', 'disk_format': 'qcow2', 'visibility': 'public', 'checksum': '15bb54c041c01533434b4665330eb7fb', 'min_ram': 0, 'owner': 'e6d5fda13ef3482fa421082f4ec45ba9', 'file': '/v2/images/b9cbf849-604f-48d8-a991-4901d896e2fe/file', 'status': 'active', 'created_at': '2019-04-24T07:07:45Z', 'virtual_size': None, 'size': 297467904, 'protected': False, 'updated_at': '2019-04-24T07:07:47Z', 'id': 'b9cbf849-604f-48d8-a991-4901d896e2fe', 'tags': []}
  11. {'name': 'cirros', 'min_disk': 0, 'schema': '/v2/schemas/image', 'container_format': 'bare', 'disk_format': 'qcow2', 'visibility': 'public', 'checksum': '443b7623e27ecf03dc9e01ee93f67afe', 'min_ram': 0, 'owner': 'e6d5fda13ef3482fa421082f4ec45ba9', 'file': '/v2/images/7a8aa799-3224-417c-8937-8c413f686fe2/file', 'status': 'active', 'created_at': '2018-12-13T11:59:15Z', 'virtual_size': None, 'size': 12716032, 'protected': False, 'updated_at': '2018-12-13T11:59:16Z', 'id': '7a8aa799-3224-417c-8937-8c413f686fe2', 'tags': []}
  12.  
  13. Process finished with exit code 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top