summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-10-17 19:36:30 +0200
committerGitHub <noreply@github.com>2023-10-17 19:36:30 +0200
commit9babc33949827c8f63daa7c21e30b6d9f47f331c (patch)
treebc1af0d4b1fdc966ab7c1ee681535e2507c85b3e /python
parentc5627b3268b6edd4ff3ff485ef13ebd30e577f03 (diff)
parent2df66a21b18586ec082622c53555e26cdb96e4df (diff)
downloadvyos-1x-9babc33949827c8f63daa7c21e30b6d9f47f331c.tar.gz
vyos-1x-9babc33949827c8f63daa7c21e30b6d9f47f331c.zip
Merge pull request #2372 from vyos/mergify/bp/sagitta/pr-2371
configdep: T5662: fix incorrect inspect.stack index of calling script (backport #2371)
Diffstat (limited to 'python')
-rw-r--r--python/vyos/configdep.py2
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 = {}