From bf4b08ea2c204a45295d2a34a88e6e4c03cf6328 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 4 Aug 2025 20:06:34 -0500 Subject: T7688: allow relative paths in save_config --- python/vyos/vyconf_session.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python') 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) -- cgit v1.2.3