#NEWLINE# @ classmethod #NEWLINE# @ log_deprecated_resource_type #NEWLINE# def transform( cls , clients , resource_config ) : #NEWLINE# #INDENT# 'Transform the resource config to id.\n\n        :param clients: openstack admin client handles\n        :param resource_config: scenario config with `id`, `name` or `regex`\n\n        :returns: id matching resource\n        ' #NEWLINE# resource_id = resource_config . get ( 'id' ) #NEWLINE# if ( not resource_id ) : #NEWLINE# #INDENT# glanceclient = clients . glance ( ) #NEWLINE# resource_id = _id_from_name ( resource_config = resource_config , resources = list ( glanceclient . images . list ( ) ) , typename = 'image' ) #NEWLINE# #UNINDENT# return glanceclient