diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-25 19:04:32 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-25 19:05:19 +0100 |
commit | ed8f75225a4a4d797affd02d355528dec8eb458b (patch) | |
tree | 9fc89d776019b44a046c15bbd43324f34684b433 | |
parent | 6df5860ab14ea22285b0f746dac05af343caa38b (diff) | |
download | vyatta-cfg-quagga-ed8f75225a4a4d797affd02d355528dec8eb458b.tar.gz vyatta-cfg-quagga-ed8f75225a4a4d797affd02d355528dec8eb458b.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.py | 2 |
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): |