diff options
Diffstat (limited to 'python/vyos/util.py')
-rw-r--r-- | python/vyos/util.py | 3 |
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): |