diff --git a/deployment/packer/driver.py b/deployment/packer/driver.py index d479bc53b..0d68d19a7 100644 --- a/deployment/packer/driver.py +++ b/deployment/packer/driver.py @@ -59,7 +59,9 @@ def get_git_sha(): 'rev-parse', 'HEAD'] - return subprocess.check_output(git_command).rstrip() + return subprocess.check_output( + git_command, + universal_newlines=True).rstrip() def get_git_branch(): @@ -69,7 +71,9 @@ def get_git_branch(): '--abbrev-ref', 'HEAD'] - return subprocess.check_output(git_command).rstrip() + return subprocess.check_output( + git_command, + universal_newlines=True).rstrip() def get_git_desc(): @@ -81,7 +85,9 @@ def get_git_desc(): '--dirty', '--abbrev=40'] - return subprocess.check_output(git_command).rstrip() + return subprocess.check_output( + git_command, + universal_newlines=True).rstrip() def run_packer(mmw_config, machine_types, aws_profile):