summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-07-01 18:40:07 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-07-01 20:43:32 -0500
commitb482e1d28b5f41e9eba46636471908ba2bc8d5df (patch)
tree1cad76971279d298274bdcecf0b6466a52722cef
parentd5d4f68129fb0d28209c53336417ed2d36c4b1c1 (diff)
downloadvyos-1x-b482e1d28b5f41e9eba46636471908ba2bc8d5df.tar.gz
vyos-1x-b482e1d28b5f41e9eba46636471908ba2bc8d5df.zip
config_dict: T2667: clarify docstring
-rw-r--r--python/vyos/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py
index 268eaa69a..9b6b26a3b 100644
--- a/python/vyos/util.py
+++ b/python/vyos/util.py
@@ -383,7 +383,8 @@ def get_sub_dict(source, lpath):
source (dict): Source dict to extract from
lpath (list[str]): sequence of keys
- Returns: {key : source[..]..[key]} for key the last element of lpath, if exists
+ Returns: source, if lpath is empty, else
+ {key : source[..]..[key]} for key the last element of lpath, if exists
{} otherwise
"""
if not isinstance(source, dict):