summaryrefslogtreecommitdiff
path: root/src/conf_mode/ipsec-settings.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-05-18 17:41:35 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-05-18 17:41:35 +0100
commit4d0c5c848fda305055b71abf63ccd18478586694 (patch)
tree5851f1adf33c18f94a16c71f8b01175e0d43e428 /src/conf_mode/ipsec-settings.py
parent1e4dd009d711f24c504e0a6b61c5aefd37dcd6ce (diff)
downloadvyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.tar.gz
vyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.zip
flake8: T2475: fix a number of issue reported by flake8
Diffstat (limited to 'src/conf_mode/ipsec-settings.py')
-rwxr-xr-xsrc/conf_mode/ipsec-settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/ipsec-settings.py b/src/conf_mode/ipsec-settings.py
index 3398bcdf2..6282c2cc7 100755
--- a/src/conf_mode/ipsec-settings.py
+++ b/src/conf_mode/ipsec-settings.py
@@ -99,7 +99,7 @@ def get_config():
def write_ipsec_secrets(c):
if c.get("ipsec_l2tp_auth_mode") == "pre-shared-secret":
secret_txt = "{0}\n{1} %any : PSK \"{2}\"\n{3}\n".format(delim_ipsec_l2tp_begin, c['outside_addr'], c['ipsec_l2tp_secret'], delim_ipsec_l2tp_end)
- elif data.get("ipsec_l2tp_auth_mode") == "x509":
+ elif c.get("ipsec_l2tp_auth_mode") == "x509":
secret_txt = "{0}\n: RSA {1}\n{2}\n".format(delim_ipsec_l2tp_begin, c['server_key_file_copied'], delim_ipsec_l2tp_end)
old_umask = os.umask(0o077)