fastd: fix fastd_key with python3
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Markus 2021-07-20 16:26:59 +02:00
parent 5682d78dbb
commit 56775c0cdd
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if __name__ == '__main__':
# create file with restrictive permissions
with os.fdopen(os.open(path, os.O_WRONLY | os.O_CREAT, 0o600), 'w') as handle:
# generate fastd secret
secret = subprocess.check_output(["fastd", "--machine-readable", "--generate-key"]).strip()
secret = subprocess.check_output(["fastd", "--machine-readable", "--generate-key"]).strip().decode()
handle.write('secret "%s";\n' % secret)
changed = True