#NEWLINE# def get_unit( meter , request ) : #NEWLINE# #INDENT# sample_list = api . ceilometer . sample_list ( request , request , limit = 1 ) #NEWLINE# unit = '' #NEWLINE# if sample_list : #NEWLINE# #INDENT# unit = sample_list [ 0 ] . counter_unit #NEWLINE# #UNINDENT# return unit