mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
configd, template sorting, missing type. closes https://github.com/opnsense/core/issues/1641
This commit is contained in:
parent
f499c3dd6e
commit
2e096b3e72
@ -28,6 +28,7 @@
|
||||
package : configd
|
||||
"""
|
||||
|
||||
import collections
|
||||
import netaddr
|
||||
import operator
|
||||
|
||||
@ -122,6 +123,6 @@ class Helpers(object):
|
||||
def sortDictList(lst, *operators):
|
||||
if type(lst) == list:
|
||||
lst.sort(key=operator.itemgetter(*operators))
|
||||
elif type(lst) == dict:
|
||||
elif type(lst) in (collections.OrderedDict, dict):
|
||||
return [lst]
|
||||
return lst
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user