summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-10-17 12:16:59 -0500
committerGitHub <noreply@github.com>2023-10-17 12:16:59 -0500
commit5062f9a87802c088c39fa5d1791796b78a8c764c (patch)
treed07c77c3a1898121e28757b6a9c5486b75ec86a7
parent69fb230ee022100234af233f2a2823f887c95059 (diff)
parenteff58d8b8842e0bac9fe123cebf93801a92f05d3 (diff)
downloadvyos-1x-5062f9a87802c088c39fa5d1791796b78a8c764c.tar.gz
vyos-1x-5062f9a87802c088c39fa5d1791796b78a8c764c.zip
Merge pull request #2371 from jestabro/bug-config-dep
configdep: T5662: fix incorrect inspect.stack index of calling script
-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 = {}