Decode operator secrets as strings

The secret values need to be decoded as strings, otherwise they will be
written to zuul.conf as:

  foo=b'BAR'

which prevents them from working properly

Change-Id: I42ce0775ff0fd2906d5515e348a84858c0f1329e
This commit is contained in:
Joshua Watt
2021-08-27 15:57:40 -05:00
parent d65ebc6bff
commit 15ad478061

View File

@@ -212,7 +212,7 @@ class Zuul:
if k == 'sshkey':
v = f'/etc/zuul/connections/{connection_name}/sshkey'
else:
v = base64.b64decode(v)
v = base64.b64decode(v).decode('utf-8')
connection[k] = v
kw = {'connections': connections,