Do not use mutable argument

Change-Id: I1cee046b27f63698fe407612441e23e64615bd9d
This commit is contained in:
wangqi 2018-08-14 07:46:01 +00:00
parent bc980af7bf
commit d637fba4bd

View File

@ -64,7 +64,7 @@ def topology(request, query=None, graph_type='tree', all_tenants='false',
def alarms(request, vitrage_id='all', all_tenants='false',
limit=1000,
sort_by=['start_timestamp', 'vitrage_id'],
sort_by=('start_timestamp', 'vitrage_id'),
sort_dirs=['asc', 'asc'],
filter_by=None,
filter_vals=None,
@ -87,7 +87,7 @@ def alarms(request, vitrage_id='all', all_tenants='false',
def history(request, all_tenants='false',
start=None, end=None,
limit=1000,
sort_by=['start_timestamp', 'vitrage_id'],
sort_by=('start_timestamp', 'vitrage_id'),
sort_dirs=['asc', 'asc'],
filter_by=None,
filter_vals=None,