From b482e1d28b5f41e9eba46636471908ba2bc8d5df Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 1 Jul 2020 18:40:07 -0500 Subject: config_dict: T2667: clarify docstring --- python/vyos/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3