summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2025-08-04 20:06:34 -0500
committerJohn Estabrook <jestabro@vyos.io>2025-08-04 21:19:36 -0500
commitbf4b08ea2c204a45295d2a34a88e6e4c03cf6328 (patch)
tree9b3bc6961f40fa2dae299e8c51c5414df6cfcff5 /python
parentad87ea82cbd2382f062b1158f72ca57ac8542be2 (diff)
downloadvyos-1x-bf4b08ea2c204a45295d2a34a88e6e4c03cf6328.tar.gz
vyos-1x-bf4b08ea2c204a45295d2a34a88e6e4c03cf6328.zip
T7688: allow relative paths in save_config
Diffstat (limited to 'python')
-rw-r--r--python/vyos/vyconf_session.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/vyos/vyconf_session.py b/python/vyos/vyconf_session.py
index 3cf5fb4e3..6de10c468 100644
--- a/python/vyos/vyconf_session.py
+++ b/python/vyos/vyconf_session.py
@@ -223,6 +223,7 @@ class VyconfSession:
@raise_exception
def save_config(self, file: str, append_version: bool = False) -> tuple[str, int]:
+ file = os.path.realpath(file)
out = vyconf_client.send_request('save', token=self.__token, location=file)
if append_version:
append_system_version(file)