diff options
author | Kim Hagen <kim@sentrium.io> | 2021-10-10 09:43:56 -0500 |
---|---|---|
committer | Kim Hagen <kim@sentrium.io> | 2021-10-10 09:43:56 -0500 |
commit | f8dca381b4822f218b4664e89b73ea2929f90a03 (patch) | |
tree | 58f5622124218f14af747c6be97d244cd7077a06 /src | |
parent | 0a4ba4cb7017e40db4f7a5583b9f3a3478aa5a0b (diff) | |
download | vyos-1x-f8dca381b4822f218b4664e89b73ea2929f90a03.tar.gz vyos-1x-f8dca381b4822f218b4664e89b73ea2929f90a03.zip |
update writer to nicer read write
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-openvpn.py | 2 |
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) |