diff options
| author | Christian Poessinger <christian@poessinger.com> | 2020-08-23 14:22:41 +0200 |
|---|---|---|
| committer | Christian Poessinger <christian@poessinger.com> | 2020-08-23 14:22:41 +0200 |
| commit | aa25690c83c4812c92490d29b564dd0330b24d34 (patch) | |
| tree | 15c5f45b5f82fd5b788c842caeba06d3d81d96f9 /python/vyos/util.py | |
| parent | 20ef1aab793504cf4956dedeeadaf528933b7ccf (diff) | |
| download | veeos-1x-aa25690c83c4812c92490d29b564dd0330b24d34.tar.gz veeos-1x-aa25690c83c4812c92490d29b564dd0330b24d34.zip | |
T2755: convert jmespath.search() to vyos_dict_search() for performance
Diffstat (limited to 'python/vyos/util.py')
| -rw-r--r-- | python/vyos/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py index 4cc25764b..84aa16791 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -673,7 +673,7 @@ def find_device_file(device): return None -def vyos_dict_search(dict, path): +def vyos_dict_search(path, dict): """ Traverse Python dictionary (dict) delimited by dot (.). Return value of key if found, None otherwise. |
