diff options
author | John Estabrook <jestabro@vyos.io> | 2023-10-16 22:37:20 -0500 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-10-17 17:19:19 +0000 |
commit | 2df66a21b18586ec082622c53555e26cdb96e4df (patch) | |
tree | bc1af0d4b1fdc966ab7c1ee681535e2507c85b3e /python/vyos/configdep.py | |
parent | c5627b3268b6edd4ff3ff485ef13ebd30e577f03 (diff) | |
download | vyos-1x-2df66a21b18586ec082622c53555e26cdb96e4df.tar.gz vyos-1x-2df66a21b18586ec082622c53555e26cdb96e4df.zip |
configdep: T5662: fix incorrect inspect.stack index of calling script
(cherry picked from commit eff58d8b8842e0bac9fe123cebf93801a92f05d3)
Diffstat (limited to 'python/vyos/configdep.py')
-rw-r--r-- | python/vyos/configdep.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/configdep.py b/python/vyos/configdep.py index 05d9a3fa3..8a28811eb 100644 --- a/python/vyos/configdep.py +++ b/python/vyos/configdep.py @@ -43,7 +43,7 @@ def canon_name_of_path(path: str) -> str: return canon_name(script) def caller_name() -> str: - return stack()[-1].filename + return stack()[2].filename def read_dependency_dict(dependency_dir: str = dependency_dir) -> dict: res = {} |