#NEWLINE# def cleanup( ) : #NEWLINE# #INDENT# openstack_client = init ( ) #NEWLINE# flavor_name = cfg . CONF . flavor_name #NEWLINE# image_name = cfg . CONF . image_name #NEWLINE# image = glance . get_image ( openstack_client . glance , image_name ) #NEWLINE# if image : #NEWLINE# #INDENT# openstack_client . glance . images . delete ( image ) #NEWLINE# #UNINDENT# flavor = nova . get_flavor ( openstack_client . nova , flavor_name ) #NEWLINE# if flavor : #NEWLINE# #INDENT# openstack_client . nova . flavors . delete ( flavor )