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
This commit is contained in:
James E. Blair 2014-07-02 16:42:33 -07:00
parent 0bd5abba0f
commit e355596105

View File

@ -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']: