Formating Image Name via Python API

asked 2015-11-08 11:19:27 -0500

Team, I'm studying OpenStack API and I would like to get all details from a Instance using NOVA API. How can I format the output when I get Image Name from the instance? Using this code I have:

server_id = 'b885153a-91fd-44fb-838a-d215056cbc62' server = NOVA_CONN.servers.get(server_id) s_image = NOVA_CONN.images.findall(id=server.image['id'])[0] print (s_image)

Output: <image: cirros="">

I would like to have only the name "cirros" Thanks CLRGomes

edit retag flag offensive close merge delete