]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
gitlab_jenkins_trigger.py: Use StringIO instead of BytesIO for unicode .buildchain...
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 3 Nov 2014 15:55:39 +0000 (16:55 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 3 Nov 2014 15:55:39 +0000 (16:55 +0100)
gitlab_jenkins_trigger.py

index 11da928f03dcc6e97cfd1d821055e13c68fd3607..b78a79420461775fb445ea329a644c64453f7d33 100755 (executable)
@@ -195,7 +195,7 @@ def read_buildchain_config(data, gitlab_client, logger):
         config = BuildchainConfig()
     else:
         logger.info(".buildchain content:\n{content}".format(content=buildchain))
-        config = BuildchainConfig(io.BytesIO(buildchain))
+        config = BuildchainConfig(io.StringIO(buildchain))
     return config