fastd: fix fastd_key with python3
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Markus 2021-07-20 16:26:59 +02:00
parent 5682d78dbb
commit 56775c0cdd

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