From e123be76bc218091f7ba3ad1586291aa3e48f4c6 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 25 Jan 2021 19:04:32 +0100 Subject: rpki: T3252: bugfix AttributeError Traceback (most recent call last): File "/opt/vyatta/sbin/vyos-update-rpki-cache.py", line 79, in create_cache(config, cache) File "/opt/vyatta/sbin/vyos-update-rpki-cache.py", line 21, in create_cache new_privkey = c.return__value(base_path + "cache {0} ssh private-key-file".format(cache)) AttributeError: 'Config' object has no attribute 'return__value' (cherry picked from commit 7c7ae83434bcfae6cef07eab162ecfe20abd8c8f) --- scripts/vyos-update-rpki-cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyos-update-rpki-cache.py b/scripts/vyos-update-rpki-cache.py index df6f01bc..f290d119 100644 --- a/scripts/vyos-update-rpki-cache.py +++ b/scripts/vyos-update-rpki-cache.py @@ -18,7 +18,7 @@ def create_cache(c, cache): ssh = True new_user = c.return_value(base_path + "cache {0} ssh username".format(cache)) new_pubkey = c.return_value(base_path + "cache {0} ssh public-key-file".format(cache)) - new_privkey = c.return__value(base_path + "cache {0} ssh private-key-file".format(cache)) + new_privkey = c.return_value(base_path + "cache {0} ssh private-key-file".format(cache)) new_known_hosts = c.return_value(base_path + "cache {0} ssh known-hosts-file".format(cache)) if (not new_user) or (not new_pubkey) or (not new_privkey) or (not new_known_hosts): -- cgit v1.2.3