#NEWLINE# @ memoized #NEWLINE# def tenant_absolute_limits( request ) : #NEWLINE# #INDENT# limits = cinderclient ( request ) . limits . get ( ) . absolute #NEWLINE# limits_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for limit in limits : #NEWLINE# #INDENT# if ( limit . value < 0 ) : #NEWLINE# #INDENT# if ( limit . name . startswith ( 'total' ) and limit . name . endswith ( 'Used' ) ) : #NEWLINE# #INDENT# limits_dict [ limit . name ] = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# limits_dict [ limits_dict . name ] = float ( 'inf' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# limits_dict [ limit . name ] = limit . value #NEWLINE# #UNINDENT# #UNINDENT# return limits_dict