summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorKim Hagen <kim@sentrium.io>2021-10-10 09:43:56 -0500
committerKim Hagen <kim@sentrium.io>2021-10-10 09:43:56 -0500
commitf8dca381b4822f218b4664e89b73ea2929f90a03 (patch)
tree58f5622124218f14af747c6be97d244cd7077a06 /src/conf_mode
parent0a4ba4cb7017e40db4f7a5583b9f3a3478aa5a0b (diff)
downloadvyos-1x-f8dca381b4822f218b4664e89b73ea2929f90a03.tar.gz
vyos-1x-f8dca381b4822f218b4664e89b73ea2929f90a03.zip
update writer to nicer read write
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index 2533a5b02..7cfed0c55 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -403,7 +403,7 @@ def verify(openvpn):
if not exists:
random = SystemRandom()
totp_secret = ''.join(random.choice(secret_chars) for _ in range(16))
- fp.write("{0} otp totp:sha1:base32:{1}::xxx *\n".format(client, totp_secret))
+ fp.write(f'{client} otp totp:sha1:base32:{totp_secret}::xxx *\n')
f.seek(0)
fp.seek(0)