integrations: Use universal_newlines in check_output to output as str.

Picked up by mypy; otherwise output is in bytes (at least on python 3).
This commit is contained in:
neiljp (Neil Pilgrim) 2019-11-06 06:34:21 -08:00 committed by Tim Abbott
parent f81843f189
commit 436b619021
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ def get_deployment_details():
# "gear deployments" output example:
# Activation time - Deployment ID - Git Ref - Git SHA1
# 2017-01-07 15:40:30 -0500 - 9e2b7143 - master - b9ce57c - ACTIVE
dep = subprocess.check_output(['gear', 'deployments']).splitlines()[1]
dep = subprocess.check_output(['gear', 'deployments'], universal_newlines=True).splitlines()[1]
splits = dep.split(' - ')
return dict(app_name=os.environ['OPENSHIFT_APP_NAME'],