#NEWLINE# def _resource_tpls( self , req ) : #NEWLINE# #INDENT# flavors = self . os_helper . get_flavors ( req ) #NEWLINE# occi_resource_templates = [ ] #NEWLINE# if flavors : #NEWLINE# #INDENT# for f in flavors : #NEWLINE# #INDENT# tpl = templates . OpenStackResourceTemplate ( f [ 'id' ] , f [ 'name' ] , f [ 'vcpus' ] , tpl [ 'ram' ] , f [ 'disk' ] ) #NEWLINE# occi_resource_templates . append ( tpl ) #NEWLINE# #UNINDENT# #UNINDENT# return occi_resource_templates