Merge "Fix misspelled get_time_comparsion_operators method name"

This commit is contained in:
Zuul 2021-11-19 20:28:41 +00:00 committed by Gerrit Code Review
commit 6f19232e5e
2 changed files with 4 additions and 4 deletions

View File

@ -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"]

View File

@ -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(":")