summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-25 19:04:32 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-25 19:05:10 +0100
commite123be76bc218091f7ba3ad1586291aa3e48f4c6 (patch)
treee737e2a9b2e280d04bdc12fa5d4df4f35256cb71
parentfccd95728d9b52879653663d135e62696779979d (diff)
downloadvyatta-cfg-quagga-e123be76bc218091f7ba3ad1586291aa3e48f4c6.tar.gz
vyatta-cfg-quagga-e123be76bc218091f7ba3ad1586291aa3e48f4c6.zip
rpki: T3252: bugfix AttributeError
Traceback (most recent call last): File "/opt/vyatta/sbin/vyos-update-rpki-cache.py", line 79, in <module> 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)
-rw-r--r--scripts/vyos-update-rpki-cache.py2
1 files changed, 1 insertions, 1 deletions
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):