From e35559610513a17393ff83ff1f09026c0dc61e8a Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 2 Jul 2014 16:42:33 -0700 Subject: [PATCH] Fix env var interpretation in zuul swift upload The zuul swift upload script wants to split an env var on newlines, but incorrectly escaped the '\' character. The env variable contains literal newlines and so should be split on that, rather than the two character '\n' sequence which is what this code assumed. Change-Id: I064b9b7baee5ae70cf6cc21d3fadcd1a341e2ae8 --- .../openstack_project/files/slave_scripts/zuul_swift_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/slave_scripts/zuul_swift_upload.py b/modules/openstack_project/files/slave_scripts/zuul_swift_upload.py index 3c20d0f856..8f5d0c3fbd 100755 --- a/modules/openstack_project/files/slave_scripts/zuul_swift_upload.py +++ b/modules/openstack_project/files/slave_scripts/zuul_swift_upload.py @@ -67,7 +67,7 @@ def swift_form_post_submit(file_list, url, hmac_body, signature): payload['redirect'], payload['max_file_size'], payload['max_file_count'], - payload['expires']) = hmac_body.split('\\n') + payload['expires']) = hmac_body.split('\n') payload['signature'] = signature if len(file_list) > payload['max_file_count']: