diff options
author | Daniil Baturin <daniil@baturin.org> | 2023-12-04 15:48:23 +0000 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2023-12-04 15:48:23 +0000 |
commit | f67173b41e4bf55e740313c588cb94d278b0b109 (patch) | |
tree | effb9e6322644659934121c8eb4a355ab3059cf5 /python | |
parent | 7bd6047901167352770b31fe47031363cad5b94d (diff) | |
download | vyos-1x-f67173b41e4bf55e740313c588cb94d278b0b109.tar.gz vyos-1x-f67173b41e4bf55e740313c588cb94d278b0b109.zip |
Revert "https api: T5772: check if keys are configured unless PAM auth is enabled for GraphQL"
This reverts commit 1b7e8f9ff7a86125ca7c8a2035650d5203dc54c5.
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/util.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py index bac327018..3ffd025b9 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -237,22 +237,3 @@ def process_named_running(name): if name in p.name(): return p.pid return None - -def dict_search(path, dict_object): - """ Traverse Python dictionary (dict_object) delimited by dot (.). - Return value of key if found, None otherwise. - This is faster implementation then jmespath.search('foo.bar', dict_object)""" - if not isinstance(dict_object, dict) or not path: - return None - - parts = path.split('.') - inside = parts[:-1] - if not inside: - if path not in dict_object: - return None - return dict_object[path] - c = dict_object - for p in parts[:-1]: - c = c.get(p, {}) - return c.get(parts[-1], None) - |