diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-18 21:13:46 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-18 21:35:28 +0200 |
commit | b6e5515aeb4d9781e0cb3508f1d07b84b1ad0ac8 (patch) | |
tree | 5ddef306033505b7ccad8354404eca6803628b57 /python | |
parent | f07f46d36e17ea07b0db65e3856cc090033d9e78 (diff) | |
download | vyos-1x-b6e5515aeb4d9781e0cb3508f1d07b84b1ad0ac8.tar.gz vyos-1x-b6e5515aeb4d9781e0cb3508f1d07b84b1ad0ac8.zip |
vyos.configtree: bugfix exception message used non existent variable
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/configtree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/vyos/configtree.py b/python/vyos/configtree.py index a0b0eb3c1..d8ffaca99 100644 --- a/python/vyos/configtree.py +++ b/python/vyos/configtree.py @@ -10,7 +10,7 @@ # See the GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License along with this library; -# if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import re import json @@ -200,7 +200,7 @@ class ConfigTree(object): raise ConfigTreeError() res = self.__rename(self.__config, path_str, newname_str) if (res != 0): - raise ConfigTreeError("Path [{}] doesn't exist".format(oldpath)) + raise ConfigTreeError("Path [{}] doesn't exist".format(path)) def copy(self, old_path, new_path): check_path(old_path) @@ -213,7 +213,7 @@ class ConfigTree(object): raise ConfigTreeError() res = self.__copy(self.__config, oldpath_str, newpath_str) if (res != 0): - raise ConfigTreeError("Path [{}] doesn't exist".format(oldpath)) + raise ConfigTreeError("Path [{}] doesn't exist".format(old_path)) def exists(self, path): check_path(path) |