Merge "Fix misspelled get_time_comparsion_operators method name"
This commit is contained in:
commit
6f19232e5e
@ -394,10 +394,10 @@ def get_enabled_resource_filters(resource=None):
|
||||
return {}
|
||||
|
||||
|
||||
def get_time_comparsion_operators():
|
||||
"""Get list of time comparsion operators.
|
||||
def get_time_comparison_operators():
|
||||
"""Get list of time comparison operators.
|
||||
|
||||
This method returns list which contains the allowed comparsion operators.
|
||||
This method returns list which contains the allowed comparison operators.
|
||||
"""
|
||||
return ["gt", "gte", "eq", "neq", "lt", "lte"]
|
||||
|
||||
|
@ -107,7 +107,7 @@ class VolumeController(volumes_v2.VolumeController):
|
||||
if time_comparison_filter in filters:
|
||||
time_filter_dict = {}
|
||||
comparison_units = filters[time_comparison_filter].split(',')
|
||||
operators = common.get_time_comparsion_operators()
|
||||
operators = common.get_time_comparison_operators()
|
||||
for comparison_unit in comparison_units:
|
||||
try:
|
||||
operator_and_time = comparison_unit.split(":")
|
||||
|
Loading…
x
Reference in New Issue
Block a user