#NEWLINE# def _numa_get_cpu_map_list( flavor , image_meta ) : #NEWLINE# #INDENT# flavor_cpu_list = _numa_get_flavor_cpu_map_list ( flavor ) #NEWLINE# image_cpu_list = image_meta . properties . get ( 'hw_numa_cpus' , None ) #NEWLINE# if ( flavor is None ) : #NEWLINE# #INDENT# return image_cpu_list #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( image_cpu_list is not None ) : #NEWLINE# #INDENT# raise exception . ImageNUMATopologyForbidden ( name = 'hw_numa_cpus' ) #NEWLINE# #UNINDENT# return flavor_cpu_list