Skip to content

Commit b393619

Browse files
wwlianengelke
authored andcommitted
Decode base64.b64decode output as string for Python 3 compatibility. (GoogleCloudPlatform#1910)
1 parent 3386e02 commit b393619

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

composer/tools/copy_environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def create_service_account_key(iam_client, project, service_account_name):
297297
)
298298
service_account_key_decoded = ast.literal_eval(
299299
base64.b64decode(service_account_key.get("privateKeyData", ""))
300+
.decode("utf-8")
300301
)
301302
time.sleep(5)
302303
return service_account_key_decoded

0 commit comments

Comments
 (0)